public function Profiler::find

Finds profiler tokens for the given criteria.

Parameters

string $ip The IP:

string $url The URL:

string $limit The maximum number of tokens to return:

string $method The request method:

string $start The start date to search from:

string $end The end date to search to:

Return value

array An array of tokens

See also

http://fr2.php.net/manual/en/datetime.formats.php for the supported date/time formats

File

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

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function find($ip, $url, $limit, $method, $start, $end) {
  if ('' != $start && null !== $start) {
    $start = new \DateTime($start);
    $start = $start
      ->getTimestamp();
  }
  else {
    $start = null;
  }
  if ('' != $end && null !== $end) {
    $end = new \DateTime($end);
    $end = $end
      ->getTimestamp();
  }
  else {
    $end = null;
  }
  return $this->storage
    ->find($ip, $url, $limit, $method, $start, $end);
}