diff options
author | Marcus Boerger <helly@php.net> | 2005-09-18 17:39:54 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-09-18 17:39:54 +0000 |
commit | 8acd34d6d82c1037343dc6c21816a5f4bacfbe4c (patch) | |
tree | 18b479ac7c3c813917c5b8336b1aa2fff9c8204d /ext/spl/spl.php | |
parent | d1ee4b407c9ea4cf45390fa295812bc360673d76 (diff) | |
download | php-git-8acd34d6d82c1037343dc6c21816a5f4bacfbe4c.tar.gz |
- MFH: Add missing docu/Synch
Diffstat (limited to 'ext/spl/spl.php')
-rwxr-xr-x | ext/spl/spl.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/ext/spl/spl.php b/ext/spl/spl.php index 1f4735b3f6..a9ec7791f7 100755 --- a/ext/spl/spl.php +++ b/ext/spl/spl.php @@ -67,6 +67,7 @@ * * - class ArrayObject implements IteratorAggregate * - class ArrayIterator implements Iterator + * - class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator * * As the above suggest an ArrayObject creates an ArrayIterator when it comes to * iteration (e.g. ArrayObject instance used inside foreach). @@ -511,17 +512,18 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Countable { /** Properties of the object have their normal functionality * when accessed as list (var_dump, foreach, etc.) */ - const STD_PROP_LIST = 0x00000001; + const STD_PROP_LIST = 0x00000001; /** Array indices can be accessed as properties in read/write */ - const ARRAY_AS_PROPS = 0x00000002; + const ARRAY_AS_PROPS = 0x00000002; /** Construct a new array iterator from anything that has a hash table. * That is any Array or Object. * * @param $array the array to use. * @param $flags see setFlags(). + * @param $iterator_class class used in getIterator() */ - function __construct($array, $flags = 0); + function __construct($array, $flags = 0, $iterator_class = "ArrayIterator"); /** Set behavior flags. * @@ -582,6 +584,14 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Countable * properties in the object. */ function count(); + + /* @param $iterator_class new class used in getIterator() + */ + function setIteratorClass($itertor_class); + + /* @return class used in getIterator() + */ + function getIteratorClass(); } /** @ingroup SPL |