cvs: php-src(PHP_5_1) /ext/spl spl.php

From: Date: Sun, 18 Sep 2005 17:39:54 +0000
Subject: cvs: php-src(PHP_5_1) /ext/spl spl.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34003@lists.php.net to get a copy of this message
helly Sun Sep 18 13:39:54 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/spl spl.php Log: - MFH: Add missing docu/Synch http://cvs.php.net/diff.php/php-src/ext/spl/spl.php?r1=1.49.2.4&r2=1.49.2.5&ty=u Index: php-src/ext/spl/spl.php diff -u php-src/ext/spl/spl.php:1.49.2.4 php-src/ext/spl/spl.php:1.49.2.5 --- php-src/ext/spl/spl.php:1.49.2.4 Sun Sep 18 13:15:03 2005 +++ php-src/ext/spl/spl.php Sun Sep 18 13:39:54 2005 @@ -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 @@ { /** 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 @@ * 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

« previous php.cvs (#34003) next »