Finds profiler tokens for the given criteria.
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:
array An array of tokens
http://fr2.php.net/manual/en/datetime.formats.php for the supported date/time formats
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);
}