@@ 1282-1291 (lines=10) @@ | ||
1279 | * @return EE_Base_Class|null|array() |
|
1280 | * @throws \EE_Error |
|
1281 | */ |
|
1282 | public function next( |
|
1283 | $current_field_value, |
|
1284 | $field_to_order_by = null, |
|
1285 | $query_params = array(), |
|
1286 | $columns_to_select = null |
|
1287 | ) { |
|
1288 | $results = $this->_get_consecutive($current_field_value, '>', $field_to_order_by, 1, $query_params, |
|
1289 | $columns_to_select); |
|
1290 | return empty($results) ? null : reset($results); |
|
1291 | } |
|
1292 | ||
1293 | ||
1294 | ||
@@ 1311-1320 (lines=10) @@ | ||
1308 | * @return EE_Base_Class|null|array() |
|
1309 | * @throws EE_Error |
|
1310 | */ |
|
1311 | public function previous( |
|
1312 | $current_field_value, |
|
1313 | $field_to_order_by = null, |
|
1314 | $query_params = array(), |
|
1315 | $columns_to_select = null |
|
1316 | ) { |
|
1317 | $results = $this->_get_consecutive($current_field_value, '<', $field_to_order_by, 1, $query_params, |
|
1318 | $columns_to_select); |
|
1319 | return empty($results) ? null : reset($results); |
|
1320 | } |
|
1321 | ||
1322 | ||
1323 |