protected function DatabaseStatementBase::__construct

protected DatabaseStatementBase::__construct($dbh)

File

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

Class

DatabaseStatementBase
Default implementation of DatabaseStatementInterface.

Code

protected function __construct($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/includes!database!database.inc/function/DatabaseStatementBase::__construct/7.x