protected function PdoProfilerStorage::fetch

5 calls to PdoProfilerStorage::fetch()
1 method overrides PdoProfilerStorage::fetch()

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php, line 174

Class

PdoProfilerStorage
Base PDO storage for profiling information in a PDO database.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function fetch($db, $query, array $args = array()) {
  $stmt = $this
    ->prepareStatement($db, $query);
  foreach ($args as $arg => $val) {
    $stmt
      ->bindValue($arg, $val, is_int($val) ? \PDO::PARAM_INT : \PDO::PARAM_STR);
  }
  $stmt
    ->execute();
  $return = $stmt
    ->fetchAll(\PDO::FETCH_ASSOC);
  return $return;
}