diff options
author | Marcus Boerger <helly@php.net> | 2004-03-09 17:01:21 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-03-09 17:01:21 +0000 |
commit | 56834c958dcae4a5e42ff6e9dcb06f8cedbb43f1 (patch) | |
tree | 9a2cff49279b5d285228dc480104d6d62bd481af | |
parent | 6a8a25567fce2465c07885710ea96e436de2a6ae (diff) | |
download | php-git-56834c958dcae4a5e42ff6e9dcb06f8cedbb43f1.tar.gz |
Update
-rwxr-xr-x | ext/spl/README | 16 | ||||
-rwxr-xr-x | ext/spl/spl.php | 18 |
2 files changed, 33 insertions, 1 deletions
diff --git a/ext/spl/README b/ext/spl/README index 229c0d734c..dff015e2c1 100755 --- a/ext/spl/README +++ b/ext/spl/README @@ -24,3 +24,19 @@ SPL offers two advanced directory classes. class DirectoryIterator implements Iterator class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveIterator + +3) XML + +SPL offers an advanced XML handling class. + +class SimpleXMLIterator extends simplexml_element extends recursiveiterator + +4) Array Overloading + +SPL offers advanced Array overloading. + +class ArrayObject implements IteratorAggregate +class ArrayIterator implements Iterator + +As the above suggest an ArrayObject creates an ArrayIterator when it comes to +iteration (e.g. ArrayObject instance used inside foreach). diff --git a/ext/spl/spl.php b/ext/spl/spl.php index 84b7e4ebe1..3086c5648c 100755 --- a/ext/spl/spl.php +++ b/ext/spl/spl.php @@ -2,7 +2,7 @@ /** Standard PHP Library * - * (c) Marcus Boerger, 2003 + * (c) Marcus Boerger, 2003 - 2004 */ /** Abstract base interface that cannot be implemented alone. Instead it @@ -318,6 +318,22 @@ class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveI */ class SimpleXMLIterator extends simplexml_element implements RecursiveIterator { + /** \copydoc Iterator::rewind + */ + function rewind(); + + /** \copydoc Iterator::current + */ + function current(); + + /** \copydoc Iterator::next + */ + function next(); + + /** \copydoc Iterator::valid + */ + function valid(); + /** \return whether the current node has sub nodes. */ function hasChildren(); |