Skip to content

Commit 8acd34d

Browse files
committed
- MFH: Add missing docu/Synch
1 parent d1ee4b4 commit 8acd34d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

ext/spl/spl.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
*
6868
* - class ArrayObject implements IteratorAggregate
6969
* - class ArrayIterator implements Iterator
70+
* - class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator
7071
*
7172
* As the above suggest an ArrayObject creates an ArrayIterator when it comes to
7273
* iteration (e.g. ArrayObject instance used inside foreach).
@@ -511,17 +512,18 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Countable
511512
{
512513
/** Properties of the object have their normal functionality
513514
* when accessed as list (var_dump, foreach, etc.) */
514-
const STD_PROP_LIST = 0x00000001;
515+
const STD_PROP_LIST = 0x00000001;
515516
/** Array indices can be accessed as properties in read/write */
516-
const ARRAY_AS_PROPS = 0x00000002;
517+
const ARRAY_AS_PROPS = 0x00000002;
517518

518519
/** Construct a new array iterator from anything that has a hash table.
519520
* That is any Array or Object.
520521
*
521522
* @param $array the array to use.
522523
* @param $flags see setFlags().
524+
* @param $iterator_class class used in getIterator()
523525
*/
524-
function __construct($array, $flags = 0);
526+
function __construct($array, $flags = 0, $iterator_class = "ArrayIterator");
525527

526528
/** Set behavior flags.
527529
*
@@ -582,6 +584,14 @@ function getArrayCopy();
582584
* properties in the object.
583585
*/
584586
function count();
587+
588+
/* @param $iterator_class new class used in getIterator()
589+
*/
590+
function setIteratorClass($itertor_class);
591+
592+
/* @return class used in getIterator()
593+
*/
594+
function getIteratorClass();
585595
}
586596

587597
/** @ingroup SPL

0 commit comments

Comments
 (0)