Ejemplo n.º 1
0
 function __construct($table, $conn = null)
 {
     $this->_table = $table;
     parent::__construct("DELETE FROM %table% %where%", $conn);
     $this->_registerHint('table');
 }
Ejemplo n.º 2
0
 function getStatement()
 {
     $stmt = parent::getStatement();
     foreach ($this->_set_values as $key => $value) {
         $stmt->set($key, $value);
     }
     return $stmt;
 }
Ejemplo n.º 3
0
 function toString()
 {
     if (!count($this->_fields) && !count($this->_raw_fields) && !$this->_selectFieldsExists() && $this->_fromClauseExists()) {
         $this->addRawField('*');
     }
     return parent::toString();
 }