public function EntityFieldQuery::range
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.
2 calls to EntityFieldQuery::range()
- EntityFieldQuery::initializePager in drupal-7.x/
includes/ entity.inc - Gets the total number of results and initializes a pager for the query.
- EntityFieldQuery::initializePager in drupal-7.x/
includes/ entity.inc - Gets the total number of results and initializes a pager for the query.
Archivo
- drupal-7.x/
includes/ entity.inc, line 947
Class
- EntityFieldQuery
- Retrieves entities matching a given set of conditions.
Código
public function range($start = NULL, $length = NULL) {
$this->range = array(
'start' => $start,
'length' => $length,
);
return $this;
}