LimitIterator::__constructConstruct a LimitIterator
&reftitle.description;
publicLimitIterator::__constructIteratoriteratorintoffset0intlimit-1
Constructs a new LimitIterator from an
iterator with a given starting
offset and maximum limit.
&reftitle.parameters;
iterator
The Iterator to limit.
offset
Optional offset of the limit.
limit
Optional count of the limit.
&reftitle.returnvalues;
The new LimitIterator.
&reftitle.errors;
Throws an OutOfRangeException
if the offset is less than 0
or the limit is less than -1.
&reftitle.examples;
LimitIterator::__construct example
]]>
&example.outputs;
&reftitle.seealso;
LimitIterator examples