You are here

protected function PdoProfilerStorage::fetch in Zircon Profile 8

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

File

vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php, line 183

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