| @@ 348-351 (lines=4) @@ | ||
| 345 | protected function getConditions(\Xhgui_Storage_Filter $filter) |
|
| 346 | { |
|
| 347 | $conditions = []; |
|
| 348 | if (null !== $filter->getStartDate()) { |
|
| 349 | $conditions['meta.request_ts']['$gte'] = new \MongoDate($this->getDateTimeFromString($filter->getStartDate()) |
|
| 350 | ->format('U')); |
|
| 351 | } |
|
| 352 | ||
| 353 | if (null !== $filter->getEndDate()) { |
|
| 354 | $conditions['meta.request_ts']['$lte'] = new \MongoDate($this->getDateTimeFromString($filter->getEndDate()) |
|
| @@ 353-357 (lines=5) @@ | ||
| 350 | ->format('U')); |
|
| 351 | } |
|
| 352 | ||
| 353 | if (null !== $filter->getEndDate()) { |
|
| 354 | $conditions['meta.request_ts']['$lte'] = new \MongoDate($this->getDateTimeFromString($filter->getEndDate()) |
|
| 355 | ->format('U')); |
|
| 356 | ||
| 357 | } |
|
| 358 | ||
| 359 | if (null !== $filter->getUrl()) { |
|
| 360 | $conditions['meta.simple_url'] = $filter->getUrl(); |
|