/** * Set the table for a update. * * @param mixed table name or array($table, $alias) or object * @return void */ public function __construct($table) { // Set the inital table name $this->_table = $table; // Start the query with no SQL return parent::__construct(Database::UPDATE, ''); }
public function __construct($table = NULL) { if ($table) { $this->_table = $table; } return parent::__construct(Database::DELETE, ''); }
public function __construct(array $columns = NULL) { if (!empty($columns)) { $this->_select = $columns; } parent::__construct(Database::SELECT, ''); }
/** * 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(Database::SELECT, ''); }
/** * Sets the initial columns to select from. * * @param array $columns * column list */ 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('', \DB::SELECT); }
/** * Set the table for a delete. * * @param mixed $table * table name or array($table, $alias) or object */ public function __construct($table = null) { if ($table) { // Set the inital table name $this->_table = $table; } // Start the query with no SQL return parent::__construct('', \DB::DELETE); }
/** * 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 parent::__construct('', \DB::UPDATE); }