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/Profiles.php 1 location
|
@@ 133-135 (lines=3) @@
|
| 130 |
|
$match = $result['conditions']; |
| 131 |
|
|
| 132 |
|
$col = '$meta.request_date'; |
| 133 |
|
if (!empty($search['limit']) && $search['limit'][0] == "P") { |
| 134 |
|
$col = '$meta.request_ts'; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
$results = $this->_collection->aggregate(array( |
| 138 |
|
array('$match' => $match), |