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. + + +