src/Xhgui/Db/Mapper.php 1 location
|
@@ 44-46 (lines=3) @@
|
41 |
|
*/ |
42 |
|
protected function _conditions($search) |
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 = array(); |
src/Xhgui/Searcher/Mongo.php 1 location
|
@@ 80-82 (lines=3) @@
|
77 |
|
$match = $result['conditions']; |
78 |
|
|
79 |
|
$col = '$meta.request_date'; |
80 |
|
if (!empty($search['limit']) && $search['limit'][0] == "P") { |
81 |
|
$col = '$meta.request_ts'; |
82 |
|
} |
83 |
|
|
84 |
|
$results = $this->_collection->aggregate(array( |
85 |
|
array('$match' => $match), |