BaseQuery::__construct PHP Méthode

__construct() protected méthode

BaseQuery constructor.
protected __construct ( FluentPDO $fpdo, $clauses )
$fpdo FluentPDO
$clauses
    protected function __construct(FluentPDO $fpdo, $clauses)
    {
        $this->fpdo = $fpdo;
        $this->clauses = $clauses;
        $this->initClauses();
    }

Usage Example

 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);
 }
All Usage Examples Of BaseQuery::__construct