__construct() protected method

BaseQuery constructor.
protected __construct ( FluentPDO $fpdo, $clauses )
$fpdo FluentPDO
$clauses
 public function __construct(FluentPDO $fpdo, $table, $values)
 {
     $clauses = array('REPLACE INTO' => array($this, 'getClauseReplaceInto'), 'VALUES' => array($this, 'getClauseValues'), 'ON DUPLICATE KEY UPDATE' => array($this, 'getClauseOnDuplicateKeyUpdate'));
     parent::__construct($fpdo, $clauses);
     $this->statements['REPLACE INTO'] = $table;
     $this->values($values);
 }
Beispiel #2
0
 function __construct($table, $db)
 {
     parent::__construct($db);
     $this->method = "Update";
     $this->table = trim($table);
     return $this;
 }
Beispiel #3
0
 function __construct($columns = "*", $db)
 {
     parent::__construct($db);
     $this->method = "SELECT";
     if (is_array($columns)) {
         $columns = implode(", ", $columns);
     }
     $this->columns = $columns;
     return $this;
 }
Beispiel #4
0
 public function __construct(\CventQuery\CventConnection $connection)
 {
     parent::__construct($connection, self::RETRIEVE_CALL_NAME);
     $this->ids = [];
 }