/** * Set the table for a update. * * @param mixed $table table name or array($table, $alias) or object * @return void */ public function __construct($table = NULL) { if ($table) { // Set the inital table name $this->_table = $table; } // Start the query with no SQL return parent::__construct(Alt_Database::UPDATE, ''); }
/** * Sets the initial columns to select from. * * @param array $columns column list * @return void */ public function __construct(array $columns = NULL) { if (!empty($columns)) { // Set the initial columns $this->_select = $columns; } // Start the query with no actual SQL statement parent::__construct(Alt_Database::SELECT, ''); }