コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public function __construct($query, array $parameters)
 {
     parent::__construct($query, $parameters);
 }