1 database.inc protected DatabaseStatementBase::__construct(DatabaseConnection $dbh)

Creates a database statement.

Parameters

DatabaseConnection $dbh: The database connection for this database query.

File

core/includes/database/database.inc, line 2347
Core systems for the database layer.

Class

DatabaseStatementBase
Default implementation of DatabaseStatementInterface.

Code

protected function __construct(DatabaseConnection $dbh) {
  $this->dbh = $dbh;
  $this->setFetchMode(PDO::FETCH_OBJ);
}