You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Marcus Boerger 9a98ff3ab5 Add standard file info functions to DirectoryIterator 23 years ago
..
examples Show classname 23 years ago
tests Cleanup 23 years ago
CREDITS Add spl extension 23 years ago
EXPERIMENTAL Add spl extension 23 years ago
README Update documentation 23 years ago
TODO Update 23 years ago
config.m4 Major update: 23 years ago
config.w32 make it build under win32 23 years ago
package.xml Add package file 23 years ago
php_spl.c Implement CahingIterator and CachingRecursiveIterator as C-code. 23 years ago
php_spl.h make it build under win32 23 years ago
spl.php Update 23 years ago
spl_array.c Cleanup 23 years ago
spl_array.h Remove interfaces implemented in engine now 23 years ago
spl_directory.c Add standard file info functions to DirectoryIterator 23 years ago
spl_directory.h Add standard file info functions to DirectoryIterator 23 years ago
spl_engine.c Make these inline 23 years ago
spl_engine.h Make these inline 23 years ago
spl_functions.c Major update: 23 years ago
spl_functions.h Implement CahingIterator and CachingRecursiveIterator as C-code. 23 years ago
spl_iterators.c Fix a (single) leak 23 years ago
spl_iterators.h Fix a (single) leak 23 years ago

README

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