engine/lib/metastrings.php 1 location
|
@@ 287-291 (lines=5) @@
|
284 |
|
$query .= " ORDER BY {$options['order_by']}, n_table.id"; |
285 |
|
} |
286 |
|
|
287 |
|
if ($options['limit']) { |
288 |
|
$limit = sanitise_int($options['limit']); |
289 |
|
$offset = sanitise_int($options['offset'], false); |
290 |
|
$query .= " LIMIT $offset, $limit"; |
291 |
|
} |
292 |
|
|
293 |
|
$dt = get_data($query, $options['callback']); |
294 |
|
|
engine/lib/river.php 1 location
|
@@ 359-363 (lines=5) @@
|
356 |
|
$options['order_by'] = sanitise_string($options['order_by']); |
357 |
|
$query .= " ORDER BY {$options['order_by']}"; |
358 |
|
|
359 |
|
if ($options['limit']) { |
360 |
|
$limit = sanitise_int($options['limit']); |
361 |
|
$offset = sanitise_int($options['offset'], false); |
362 |
|
$query .= " LIMIT $offset, $limit"; |
363 |
|
} |
364 |
|
|
365 |
|
$river_items = get_data($query, '_elgg_row_to_elgg_river_item'); |
366 |
|
_elgg_prefetch_river_entities($river_items); |
engine/classes/Elgg/Database/EntityTable.php 1 location
|
@@ 666-670 (lines=5) @@
|
663 |
|
$query .= " ORDER BY {$options['order_by']}"; |
664 |
|
} |
665 |
|
|
666 |
|
if ($options['limit']) { |
667 |
|
$limit = sanitise_int($options['limit'], false); |
668 |
|
$offset = sanitise_int($options['offset'], false); |
669 |
|
$query .= " LIMIT $offset, $limit"; |
670 |
|
} |
671 |
|
|
672 |
|
if ($options['callback'] === 'entity_row_to_elggstar') { |
673 |
|
$results = $this->fetchFromSql($query, $options['__ElggBatch']); |