MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
deletecriteria.class
Ir para a documentação deste ficheiro.
1<?php
2
4{
5 private $transaction;
6
7 public function __construct($classMap, $manager)
8 {
9 parent::__construct($classMap, $manager);
10 $this->transaction = NULL;
11 }
12
13 function getSqlStatement()
14 {
15 $statement = new MSQL();
16 $statement->SetTables($this->classMap->getDeleteSql());
17
18 // Add 'WHERE' clause to the select statement
19 if (($whereCondition = $this->whereCondition->getSql()) != '')
20 {
21 $statement->SetWhere($whereCondition);
22 }
23 return $statement;
24 }
25
26 public function setTransaction($transaction)
27 {
28 $this->transaction = $transaction;
29 }
30
31 public function getTransaction()
32 {
33 return $this->transaction;
34 }
35
36 public function delete($parameters = null)
37 {
38 return $this->manager->processCriteriaDelete($this, $parameters);
39 }
40}
41?>
__construct($classMap, $manager)
setTransaction($transaction)
Definição msql.class:8