protected function PdoProfilerStorage::fetch

5 calls to PdoProfilerStorage::fetch()
PdoProfilerStorage::find in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
Finds profiler tokens for the given criteria.
PdoProfilerStorage::has in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
Returns whether data for the given token already exists in storage.
PdoProfilerStorage::read in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
Reads data associated with the given token.
PdoProfilerStorage::readChildren in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
Reads the child profiles for the given token.
SqliteProfilerStorage::fetch in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/SqliteProfilerStorage.php
1 method overrides PdoProfilerStorage::fetch()
SqliteProfilerStorage::fetch in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/SqliteProfilerStorage.php

File

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

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;
}