| @@ 361-364 (lines=4) @@ | ||
| 358 | protected function getConditions(\Xhgui_Storage_Filter $filter) |
|
| 359 | { |
|
| 360 | $conditions = []; |
|
| 361 | if (null !== $filter->getStartDate()) { |
|
| 362 | $conditions['meta.request_ts']['$gte'] = new \MongoDate($this->getDateTimeFromString($filter->getStartDate()) |
|
| 363 | ->format('U')); |
|
| 364 | } |
|
| 365 | ||
| 366 | if (null !== $filter->getEndDate()) { |
|
| 367 | $conditions['meta.request_ts']['$lte'] = new \MongoDate($this->getDateTimeFromString($filter->getEndDate()) |
|
| @@ 366-370 (lines=5) @@ | ||
| 363 | ->format('U')); |
|
| 364 | } |
|
| 365 | ||
| 366 | if (null !== $filter->getEndDate()) { |
|
| 367 | $conditions['meta.request_ts']['$lte'] = new \MongoDate($this->getDateTimeFromString($filter->getEndDate()) |
|
| 368 | ->format('U')); |
|
| 369 | ||
| 370 | } |
|
| 371 | ||
| 372 | if (null !== $filter->getUrl()) { |
|
| 373 | $conditions['meta.simple_url'] = $filter->getUrl(); |
|