protected function MongoDbProfilerStorage::readChildren

Parameters

string $token:

Return value

Profile[] An array of Profile instances

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

File

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

Class

MongoDbProfilerStorage

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function readChildren($token) {
  $profiles = array();
  $cursor = $this
    ->getMongo()
    ->find(array(
    'parent' => $token,
    'data' => array(
      '$exists' => true,
    ),
  ));
  foreach ($cursor as $d) {
    $profiles[] = $this
      ->getProfile($this
      ->getData($d));
  }
  return $profiles;
}