php-src/ext/spl
2004-09-29 19:36:30 +00:00
..
examples Add new examples 2004-09-26 21:21:45 +00:00
internal - Update examples 2004-05-08 12:24:15 +00:00
tests - Update test 2004-09-29 19:36:30 +00:00
config.m4 Implement extension load-order deps. 2004-07-18 12:03:51 +00:00
config.w32 Prevent shared builds under windows too 2004-01-20 19:49:21 +00:00
CREDITS Add spl extension 2003-05-01 23:28:28 +00:00
doxygen.cfg - Documentation update 2004-05-10 17:26:03 +00:00
package.xml Add spl_sxe to prackage 2004-01-19 08:32:58 +00:00
php_spl.c SPL is meant to be in uppercase letters, do it now it works 2004-04-29 23:02:11 +00:00
php_spl.h Update copyright 2004-01-08 18:17:39 +00:00
README Update 2004-03-09 17:47:28 +00:00
spl_array.c Fix seeking 2004-08-31 20:54:00 +00:00
spl_array.h Add cvs tags 2004-01-20 20:59:45 +00:00
spl_directory.c - Fix protoe's 2004-09-03 18:39:30 +00:00
spl_directory.h Add cvs tags 2004-01-20 20:59:45 +00:00
spl_engine.c Update copyright 2004-01-08 18:17:39 +00:00
spl_engine.h Add cvs tags 2004-01-20 20:59:45 +00:00
spl_functions.c Clearify the different method/class flags (as discussed with Andi). 2004-03-09 16:38:37 +00:00
spl_functions.h Fix order of macro parameter (synch with other macros) 2004-04-12 13:02:54 +00:00
spl_iterators.c - Fix problem when inner constructor isn't called from derived constructor 2004-07-28 22:53:10 +00:00
spl_iterators.h Rename hasMore() to valid() as discussed. (Part II) 2004-03-08 18:05:41 +00:00
spl_sxe.c Rename hasMore() to valid() as discussed. (Part I) 2004-03-08 17:33:31 +00:00
spl_sxe.h Add cvs tags 2004-01-20 20:59:45 +00:00
spl.php - Add link to chm version 2004-09-03 18:46:29 +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 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).