| 7 entity.inc | public EntityFieldQuery::range($start = NULL, $length = NULL) |
| 8 entity.query.inc | 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 947
Code
public function range($start = NULL, $length = NULL) {
$this->range = array(
'start' => $start,
'length' => $length,
);
return $this;
}
Login or register to post comments
Comments
Zero returns the first item.
Like an array $start = 0 returns the first item.