function __construct($sql_or_conn = null, $conn = null)
 {
     if (is_object($sql_or_conn)) {
         parent::__construct(self::DEFAULT_SQL_TEMPLATE, $sql_or_conn);
     } else {
         parent::__construct($sql_or_conn, $conn);
     }
 }
Esempio n. 2
0
 function __construct($table, $conn = null)
 {
     $this->_table = $table;
     parent::__construct("UPDATE %table% SET %fields% %where%", $conn);
     $this->_registerHint('table');
 }
Esempio n. 3
0
 function __construct($table, $conn = null)
 {
     $this->_table = $table;
     parent::__construct("DELETE FROM %table% %where%", $conn);
     $this->_registerHint('table');
 }