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:
array An array of tokens
Overrides ProfilerStorageInterface::find
public function find($ip, $url, $limit, $method) {
list($criteria, $args) = $this
->buildCriteria($ip, $url, $limit, $method);
$criteria = $criteria ? 'WHERE ' . implode(' AND ', $criteria) : '';
$db = $this
->initDb();
$tokens = $this
->fetch($db, 'SELECT token, ip, method, url, time, parent FROM sf_profiler_data ' . $criteria . ' ORDER BY time DESC LIMIT ' . (int) $limit, $args);
$this
->close($db);
return $tokens;
}