cvs: phpdoc /en/reference/spl/splqueue setiteratormode.xml
| From: | Peter Cowburn | Date: | Tue, 30 Jun 2009 18:26:45 +0000 |
| Subject: | cvs: phpdoc /en/reference/spl/splqueue setiteratormode.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4296@lists.php.net to get a copy of this message | ||
salathe Tue Jun 30 18:26:45 2009 UTC
Modified files:
/phpdoc/en/reference/spl/splqueue setiteratormode.xml
Log:
Tidied SplQueue::setIteratorMode; labeled constants, changed wording on LIFO warning, added errors
section.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splqueue/setiteratormode.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/spl/splqueue/setiteratormode.xml
diff -u phpdoc/en/reference/spl/splqueue/setiteratormode.xml:1.4
phpdoc/en/reference/spl/splqueue/setiteratormode.xml:1.5
--- phpdoc/en/reference/spl/splqueue/setiteratormode.xml:1.4 Sat May 9 20:16:06 2009
+++ phpdoc/en/reference/spl/splqueue/setiteratormode.xml Tue Jun 30 18:26:45 2009
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry xml:id="splqueue.setiteratormode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>SplQueue::setIteratorMode</refname>
@@ -28,20 +28,19 @@
<listitem>
<simpara>The behavior of the iterator (either one or the other):</simpara>
<itemizedlist>
- <listitem><simpara>SplDoublyLinkedList::IT_MODE_DELETE (Elements are deleted
by the iterator)</simpara></listitem>
- <listitem><simpara>SplDoublyLinkedList::IT_MODE_KEEP (Elements are traversed
by the iterator)</simpara></listitem>
+
<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>
</itemizedlist>
</listitem>
</itemizedlist>
<para>
- The default mode is 0x0 : SplDoublyLinkedList::IT_MODE_FIFO |
SplDoublyLinkedList::IT_MODE_KEEP
+ The default mode is: <constant>SplDoublyLinkedList::IT_MODE_FIFO</constant> |
<constant>SplDoublyLinkedList::IT_MODE_KEEP</constant>
</para>
<warning>
<para>
- The direction of iteration can no longer be changer for SplQueues.
- Trying to do so will result in a <classname>RuntimeException</classname> being
thrown.
+ The direction of iteration can not be changed for SplQueues, it is always
<constant>SplDoublyLinkedList::IT_MODE_FIFO</constant>.
</para>
</warning>
</listitem>
@@ -57,6 +56,13 @@
</para>
</refsect1>
+ <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>
+
</refentry>
<!-- Keep this comment at the end of the file