You are here

protected function MongoDbProfilerStorage::readChildren in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\MongoDbProfilerStorage::readChildren()

Parameters

string $token:

Return value

Profile[] An array of Profile instances

1 call to MongoDbProfilerStorage::readChildren()
MongoDbProfilerStorage::createProfileFromData in vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php

File

vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php, line 144

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