protected function PdoProfilerStorage::readChildren

Reads the child profiles for the given token.

Parameters

string $token The parent token:

string $parent The parent instance:

Return value

array An array of Profile instance

1 call to PdoProfilerStorage::readChildren()
PdoProfilerStorage::createProfileFromData in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php

File

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

Class

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

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function readChildren($token, $parent) {
  $db = $this
    ->initDb();
  $data = $this
    ->fetch($db, 'SELECT token, data, ip, method, url, time FROM sf_profiler_data WHERE parent = :token', array(
    ':token' => $token,
  ));
  $this
    ->close($db);
  if (!$data) {
    return array();
  }
  $profiles = array();
  foreach ($data as $d) {
    $profiles[] = $this
      ->createProfileFromData($d['token'], $d, $parent);
  }
  return $profiles;
}