예제 #1
0
 /**
  * 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, '');
 }
예제 #2
0
 public function __construct($table = NULL)
 {
     if ($table) {
         $this->_table = $table;
     }
     return parent::__construct(Database::DELETE, '');
 }
예제 #3
0
 public function __construct(array $columns = NULL)
 {
     if (!empty($columns)) {
         $this->_select = $columns;
     }
     parent::__construct(Database::SELECT, '');
 }
예제 #4
0
 /**
  * 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, '');
 }
예제 #5
0
 /**
  * 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);
 }
예제 #6
0
 /**
  * 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);
 }
예제 #7
0
 /**
  * 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);
 }