From b4dd030782ae49646cdefa8435e6c8acbbf17745 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 15 Sep 2005 03:33:04 +0000 Subject: MFH: - Add SplObjectStorage - Add RecursiveFilterIterator - Rename Observer to SplObserver - Rename Subject to SplSubject - Move SPL constants to class constants - Update docu --- ext/spl/spl.php | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'ext/spl/spl.php') diff --git a/ext/spl/spl.php b/ext/spl/spl.php index ba2f5dcc4a..9b35f8386d 100755 --- a/ext/spl/spl.php +++ b/ext/spl/spl.php @@ -59,7 +59,7 @@ * * SPL offers an advanced XML handling class: * - * - class SimpleXMLIterator extends simplexml_element extends recursiveiterator + * - class SimpleXMLIterator extends simplexml_element implements RecursiveIterator * * 4) Array Overloading * @@ -97,8 +97,9 @@ * * SPL suggests a standard way of implementing the observer pattern. * - * - interface Observer - * - interface Subject + * - interface SplObserver + * - interface SplSubject + * - class SplObjectStorage * * Some articles about SPL: * - Introducing PHP 5's Standard Library @@ -106,10 +107,14 @@ * - Advanced OOP with SPL in PHP 5 * - The Standard PHP Library, Part 1 * - The Standard PHP Library, Part 2 + * - SPL on PHP Wiki + * - Die Standard PHP Library (SPL) [german] * * Talks on SPL: - * - SPL for the masses [pps] - * - SPL for the masses [pdf] + * - SPL for the masses [pps], [pdf] + * - Debug session 1 [pps], [pdf] + * - Debug session 2 [pps], [pdf] + * - From engine overloading to SPL [pps], [pdf] * * You can download this documentation as a chm file * here. @@ -504,6 +509,12 @@ interface Serializeable */ 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; + /** Array indices can be accessed as properties in read/write */ + const ARRAY_AS_PROPS = 0x00000002; + /** Construct a new array iterator from anything that has a hash table. * That is any Array or Object. * @@ -588,6 +599,12 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Countable */ class ArrayIterator implements SeekableIterator, ArrayAccess, Countable { + /** Properties of the object have their normal functionality + * when accessed as list (var_dump, foreach, etc.) */ + const STD_PROP_LIST = 0x00000001; + /** Array indices can be accessed as properties in read/write */ + const ARRAY_AS_PROPS = 0x00000002; + /** Construct a new array iterator from anything that has a hash table. * That is any Array or Object. * -- cgit v1.2.1