php-src/ext/spl
Marcus Boerger d79ca1c853 Update
2003-12-04 20:01:46 +00:00
..
examples Update documentation 2003-12-04 19:39:46 +00:00
tests Cleanup 2003-11-26 23:28:35 +00:00
config.m4 Major update: 2003-11-09 14:05:36 +00:00
CREDITS Add spl extension 2003-05-01 23:28:28 +00:00
EXPERIMENTAL Add spl extension 2003-05-01 23:28:28 +00:00
package.xml Add package file 2003-12-04 19:53:33 +00:00
php_spl.c Add classes from examples: FilterIterator, ParentIterator 2003-12-02 07:18:05 +00:00
php_spl.h Cleanup 2003-11-26 23:28:35 +00:00
README Update documentation 2003-12-04 19:39:46 +00:00
spl_array.c Cleanup 2003-11-26 23:28:35 +00:00
spl_array.h Remove interfaces implemented in engine now 2003-11-26 08:18:26 +00:00
spl_directory.c Move object struct to header. 2003-12-02 07:13:53 +00:00
spl_directory.h Move object struct to header. 2003-12-02 07:13:53 +00:00
spl_engine.c Major update: 2003-11-09 14:05:36 +00:00
spl_engine.h Cleanup 2003-11-26 23:28:35 +00:00
spl_functions.c Major update: 2003-11-09 14:05:36 +00:00
spl_functions.h Fix macros 2003-11-30 17:05:10 +00:00
spl_iterators.c Remove debug code 2003-12-02 07:19:31 +00:00
spl_iterators.h Add classes from examples: FilterIterator, ParentIterator 2003-12-02 07:18:05 +00:00
spl.php Update 2003-12-04 20:01:46 +00:00
TODO Update 2003-12-04 17:45:36 +00:00

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 the are sooner or 
later intergrated 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.

1) Iterators

SPL offers some advanced iterator algorythmns:

interface RecursiveIterator implements Iterator
class RecursiveIteratorIterator implements Iterator
abstract class FilterIterator implements Iterator
class ParentIterator extends FilterIterator implements RecursiveIterator

2) Directories

SPL offers two advanced directory classes.

class DirectoryIterator implements Iterator
class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveIterator