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); }
function __construct($table, $db) { parent::__construct($db); $this->method = "Update"; $this->table = trim($table); return $this; }
function __construct($columns = "*", $db) { parent::__construct($db); $this->method = "SELECT"; if (is_array($columns)) { $columns = implode(", ", $columns); } $this->columns = $columns; return $this; }
public function __construct(\CventQuery\CventConnection $connection) { parent::__construct($connection, self::RETRIEVE_CALL_NAME); $this->ids = []; }