private function MongoDbProfilerStorage::buildQuery

Parameters

string $ip:

string $url:

string $method:

Return value

array

File

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

Class

MongoDbProfilerStorage

Namespace

Symfony\Component\HttpKernel\Profiler

Code

private function buildQuery($ip, $url, $method) {
  $query = array();
  if (!empty($ip)) {
    $query['ip'] = $ip;
  }
  if (!empty($url)) {
    $query['url'] = $url;
  }
  if (!empty($method)) {
    $query['method'] = $method;
  }
  return $query;
}