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