src/Xhgui/Searcher/MongoSearcher.php 1 location
|
@@ 92-94 (lines=3) @@
|
| 89 |
|
$match = $result['conditions']; |
| 90 |
|
|
| 91 |
|
$col = '$meta.request_date'; |
| 92 |
|
if (!empty($search['limit']) && $search['limit'][0] === 'P') { |
| 93 |
|
$col = '$meta.request_ts'; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
$pipeline = [ |
| 97 |
|
['$match' => $match], |
src/Xhgui/Db/Mapper.php 1 location
|
@@ 44-46 (lines=3) @@
|
| 41 |
|
*/ |
| 42 |
|
private function buildConditions(array $search): array |
| 43 |
|
{ |
| 44 |
|
if (!empty($search['limit_custom']) && $search['limit_custom'][0] === 'P') { |
| 45 |
|
$search['limit'] = $search['limit_custom']; |
| 46 |
|
} |
| 47 |
|
$hasLimit = (!empty($search['limit']) && $search['limit'] != -1); |
| 48 |
|
|
| 49 |
|
$conditions = []; |