public function EntityFieldQuery::range

public EntityFieldQuery::range($start = NULL, $length = NULL)

Restricts a query to a given range in the result set.

Parameters

$start: The first entity from the result set to return. If NULL, removes any range directives that are set.

$length: The number of entities to return from the result set.

Return value

EntityFieldQuery The called object.

File

includes/entity.inc, line 1023

Class

EntityFieldQuery
Retrieves entities matching a given set of conditions.

Code

public function range($start = NULL, $length = NULL) {
  $this->range = array(
    'start' => $start,
    'length' => $length,
  );
  return $this;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!entity.inc/function/EntityFieldQuery::range/7.x