public function __construct($query, $parameters, $resource, $link) { $this->resource = $resource; $this->affected_rows = mysqli_affected_rows($link); $this->last_inserted_id = mysqli_insert_id($link); parent::__construct($query, $parameters); }
public function __construct($query, $parameters, PDOStatement $statement, PDO $pdo) { // TODO change this for pgsql $this->last_inserted_id = $pdo->lastInsertId(); $this->statement = $statement; parent::__construct($query, $parameters); }
public function __construct($query, array $parameters) { parent::__construct($query, $parameters); }