php-src/ext/spl
2004-10-07 23:08:19 +00:00
..
examples - Speling 2004-09-29 20:27:36 +00:00
internal - Update examples 2004-05-08 12:24:15 +00:00
tests - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
config.m4 Implement extension load-order deps. 2004-07-18 12:03:51 +00:00
config.w32
CREDITS
doxygen.cfg - Documentation update 2004-05-10 17:26:03 +00:00
package.xml
php_spl.c - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
php_spl.h
README
spl_array.c - Rename delete_global_variable() to zend_delete_global_variable() 2004-10-04 20:17:06 +00:00
spl_array.h
spl_directory.c - Fix protoe's 2004-09-03 18:39:30 +00:00
spl_directory.h
spl_engine.c
spl_engine.h
spl_functions.c
spl_functions.h - CS: Use PHP_* instead of ZEND_* macros 2004-09-30 08:04:29 +00:00
spl_iterators.c - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
spl_iterators.h - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
spl_sxe.c
spl_sxe.h
spl.php Fugbix typo. 2004-10-01 10:35:26 +00:00
TODO

This is an extension that aims to implement some efficient data access 
interfaces and classes. You'll find the classes documented using php
code in the file spl.php or in the corresponding .inc file in the examples
subdirectory. Based on the internal implementations or the files in the 
examples subdirectory there are also some .php files to experiment with.

The .inc files are not included automatically because they are sooner or 
later integrated into the extension. That means that you either need to 
put the code of examples/autoload into your autoprepend file or that you
have to point your ini setting auto_prepend_file to this file.

Below is a list of interfaces/classes already availabel natively through
the SPL extension grouped by category. For more information refer to the 
docuement spl.php.

1) Iterators

SPL offers some advanced iterator algorithms:

interface RecursiveIterator implements Iterator
class RecursiveIteratorIterator implements Iterator
abstract class FilterIterator implements Iterator
class ParentIterator extends FilterIterator implements RecursiveIterator
interface SeekableIterator implements Iterator
class LimitIterator implements Iterator
class CachingIterator implements Iterator
class CachingRecursiveIterator extends CachingIterator implements RecursiveIterator

2) Directories

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).