| Versionen | |
|---|---|
| drupal7 | protected DatabaseStatementPrefetch::getStatement($query, &$args = array()) |
Grab a PDOStatement object from a given query and its arguments.
Some drivers (including SQLite) will need to perform some preparation themselves to get the statement right.
$query The query.
array $args An array of arguments.
A PDOStatement object.
includes/
<?php
protected function getStatement($query, &$args = array()) {
return $this->dbh->prepare($query);
}
?>
Kommentare
Kommentar hinzufügen