Ejemplo n.º 1
0
 /**
  * Create an insert query;
  * @param string $insert_into the table to insert into.
  * @param string $connector the connector to use from the config file
  */
 public function __construct($insert_into = '', $connector = 'mysql')
 {
     parent::__construct('', $connector);
     $this->insertInto($insert_into);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Create a delete query;
  * @param string $select the columns to select.
  * @param string $connector the connector to use from the config file
  */
 public function __construct($select = '', $connector = 'mysql')
 {
     parent::__construct('', $connector);
     $this->select($select);
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Create an update query;
  * @param string $update the table to update.
  * @param string $connector the connector to use from the config file
  */
 public function __construct($update = '', $connector = 'mysql')
 {
     parent::__construct('', $connector);
     $this->update($update);
     return $this;
 }
Ejemplo n.º 4
0
 /**
  * Create a delete query;
  * @param string $delete_from the table to delete from.
  * @param string $connector the connector to use from the config file
  */
 public function __construct($delete_from = '', $connector = 'mysql')
 {
     parent::__construct('', $connector);
     $this->deleteFrom($delete_from);
     return $this;
 }