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