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