/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }