2011-08-16 11:38:58 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2009-07-11 08:59:47 +00:00
<!-- $Revision$ -->
2008-05-12 00:29:35 +00:00
<refentry xml:id= "splqueue.setiteratormode" xmlns= "http://docbook.org/ns/docbook" >
<refnamediv >
<refname > SplQueue::setIteratorMode</refname>
<refpurpose > Sets the mode of iteration</refpurpose>
</refnamediv>
<refsect1 role= "description" >
&reftitle.description;
<methodsynopsis >
<type > void</type> <methodname > SplQueue::setIteratorMode</methodname>
<methodparam > <type > int</type> <parameter > mode</parameter> </methodparam>
</methodsynopsis>
</refsect1>
<refsect1 role= "parameters" >
&reftitle.parameters;
<para >
<variablelist >
<varlistentry >
<term > <parameter > mode</parameter> </term>
<listitem >
<para >
There is only one iteration parameter you can modify.
</para>
<itemizedlist >
<listitem >
<simpara > The behavior of the iterator (either one or the other):</simpara>
<itemizedlist >
2009-06-30 18:26:45 +00:00
<listitem > <simpara > <constant > SplDoublyLinkedList::IT_MODE_DELETE</constant> (Elements are deleted by the iterator)</simpara> </listitem>
<listitem > <simpara > <constant > SplDoublyLinkedList::IT_MODE_KEEP</constant> (Elements are traversed by the iterator)</simpara> </listitem>
2008-05-12 00:29:35 +00:00
</itemizedlist>
</listitem>
</itemizedlist>
<para >
2009-06-30 18:26:45 +00:00
The default mode is: <constant > SplDoublyLinkedList::IT_MODE_FIFO</constant> | <constant > SplDoublyLinkedList::IT_MODE_KEEP</constant>
2008-05-12 00:29:35 +00:00
</para>
<warning >
<para >
2009-06-30 18:26:45 +00:00
The direction of iteration can not be changed for SplQueues, it is always <constant > SplDoublyLinkedList::IT_MODE_FIFO</constant> .
2008-05-12 00:29:35 +00:00
</para>
</warning>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role= "returnvalues" >
&reftitle.returnvalues;
<para >
&return.void;
</para>
</refsect1>
2009-06-30 18:26:45 +00:00
<refsect1 role= "errors" >
&reftitle.errors;
<para >
Throws a <classname > RuntimeException</classname> on trying to change the direction of iteration by using <constant > SplDoublyLinkedList::IT_MODE_LIFO</constant> .
</para>
</refsect1>
2008-05-12 00:29:35 +00:00
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
2009-09-25 07:04:39 +00:00
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
2008-05-12 00:29:35 +00:00
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->