LimitIterator::__constructConstruye un nuevo objeto LimitIterator
&reftitle.description;
publicLimitIterator::__constructIteratoriteratorintoffset0intlimit-1
Construye un nuevo objeto LimitIterator desde iterator con
un offset y un límite máximo limit
&reftitle.parameters;
iterator
El Iterator a limitar.
offset
Posición opcional del límite.
limit
Número opcional del límite.
&reftitle.errors;
Lanza una ValueError
si offset es inferior a 0
o si limit es inferior a -1.
&reftitle.changelog;
&Version;&Description;8.0.0
Ahora lanza una excepción ValueError
cuando offset es inferior a 0 ;
Anteriormente, se lanzaba una RuntimeException.
8.0.0
Ahora lanza una excepción ValueError
cuando limit es inferior a -1 ;
Anteriormente, se lanzaba una RuntimeException.
&reftitle.examples;
Ejemplo LimitIterator::__construct
]]>
&example.outputs;
&reftitle.seealso;
Ejemplos LimitIterator