protected function Statement::__construct

protected Statement::__construct(Connection $dbh)

File

core/lib/Drupal/Core/Database/Statement.php, line 34

Class

Statement
Default implementation of StatementInterface.

Namespace

Drupal\Core\Database

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Statement.php/function/Statement::__construct/8.1.x