From 74cb2ecdd15352ded85a71ff8195dfcdac5a23e7 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Tue, 30 Jun 2009 18:26:45 +0000 Subject: [PATCH] Tidied SplQueue::setIteratorMode; labeled constants, changed wording on LIFO warning, added errors section. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283193 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/spl/splqueue/setiteratormode.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/reference/spl/splqueue/setiteratormode.xml b/reference/spl/splqueue/setiteratormode.xml index 8caacc2d77..0b092f3918 100644 --- a/reference/spl/splqueue/setiteratormode.xml +++ b/reference/spl/splqueue/setiteratormode.xml @@ -1,5 +1,5 @@ - + SplQueue::setIteratorMode @@ -28,20 +28,19 @@ The behavior of the iterator (either one or the other): - SplDoublyLinkedList::IT_MODE_DELETE (Elements are deleted by the iterator) - SplDoublyLinkedList::IT_MODE_KEEP (Elements are traversed by the iterator) + SplDoublyLinkedList::IT_MODE_DELETE (Elements are deleted by the iterator) + SplDoublyLinkedList::IT_MODE_KEEP (Elements are traversed by the iterator) - The default mode is 0x0 : SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_KEEP + The default mode is: SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_KEEP - The direction of iteration can no longer be changer for SplQueues. - Trying to do so will result in a RuntimeException being thrown. + The direction of iteration can not be changed for SplQueues, it is always SplDoublyLinkedList::IT_MODE_FIFO. @@ -57,6 +56,13 @@ + + &reftitle.errors; + + Throws a RuntimeException on trying to change the direction of iteration by using SplDoublyLinkedList::IT_MODE_LIFO. + + +