180 function spl_autoload(
string $class_name,
string $file_extensions = NULL) {};
288 if (func_num_args()) {
292 $this->file = __FILE__;
293 $this->line = __LINE__;
294 $this->trace = debug_backtrace();
295 $this->
string = StringFormat($this);
635 function __construct($array, $flags = 0, $iterator_class =
"ArrayIterator") {}
973 function openFile($mode =
'r', $use_include_path =
false, $context = NULL) {}
__construct($array, $flags=0)
Construct a new array iterator from anything that has a hash table.
setInfoClass(string class_name="SplFileInfo")
__construct($path, $flags=0)
Construct a directory iterator from a path-string.
Exception thrown to indicate an unexpected value.
const STD_PROP_LIST
Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.)
spl_autoload_register(string $autoload_function="spl_autoload", $throw=true)
Register given function as autoload implementation.
natcasesort()
Sort the entries by values using case insensitive "natural order" algorithm.
Interface to override array access of objects.
Interface for customized serializing.
$code
The code passed to the constructor.
uksort(mixed cmp_function)
Sort the entries by key using user defined function.
next()
Move forward to next element.
update(SplSubject $subject)
Called from the subject (i.e.
next()
Move forward to next element.
notify()
Notify all observers.
__construct($array, $flags=0, $iterator_class="ArrayIterator")
Construct a new array iterator from anything that has a hash table.
Interface to create an external Iterator.
offsetSet($index, $newval)
offsetSet($offset, $value)
detach(SplObserver $observer)
spl_autoload_extensions($file_extensions)
Register and return default file extensions for spl_autoload.
getPathInfo(string class_name=NULL)
const STD_PROP_LIST
Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.)
offsetSet($index, $newval)
Exception that denotes a value not in the valid domain was used.
current()
Return the current element.
recursive SimpleXML_Element iterator
ksort()
Sort the entries by key.
__construct($message=NULL, $code=0)
Construct an exception.
rewind()
Rewind the Iterator to the first element.
Exception thrown when a parameter exceeds the allowed length.
key()
Return the key of the current element.
attach(SplObserver $observer)
Exception thrown to indicate arithmetic/buffer underflow.
const NEW_CURRENT_AND_KEY
asort()
Sort the entries by values.
Exception thrown when a function call was illegal.
Interface for recursive iteration with RecursiveIteratorIterator.
uasort(mixed cmp_function)
Sort the entries by values using user defined function.
next()
Move forward to next element.
const CURRENT_AS_FILEINFO
natsort()
Sort the entries by values using "natural order" algorithm.
key()
Return the key of the current element.
getFileInfo(string class_name=NULL)
setFlags($flags)
Set behavior flags.
__construct($file_name)
Construct a file info object.
openFile($mode= 'r', $use_include_path=false, $context=NULL)
Open the current file as a SplFileObject instance.
current()
Return the current element.
natsort()
Sort the entries by values using "natural order" algorithm.
$file
The file name where the exception was instantiated.
valid()
Check if there is a current element after calls to rewind() or next().
$line
The line number where the exception was instantiated.
valid()
Check if there is a current element after calls to rewind() or next().
spl_classes()
Return an array of classes and interfaces in SPL.
valid()
Check if there is a current element after calls to rewind() or next().
natcasesort()
Sort the entries by values using case insensitive "natural order" algorithm.
const ARRAY_AS_PROPS
Array indices can be accessed as properties in read/write.
spl_autoload_call(string $class_name)
Manual invocation of all registerd autoload functions.
rewind()
Rewind the Iterator to the first element.
setFileClass(string class_name="SplFileObject")
key()
Return the key of the current element.
Exception that denotes invalid arguments were passed.
Exception that represents error in the program logic.
Exception thrown to indicate arithmetic/buffer overflow.
spl_autoload_unregister(string $autoload_function="spl_autoload")
Unregister given function as autoload implementation.
uasort(mixed cmp_function)
Sort the entries by values using user defined function.
ksort()
Sort the entries by key.
current()
Return the current element.
Subject to the observer pattern.
Exception thrown when an illegal index was requested.
Exception thrown for errors that are only detectable at runtime.
Exception thrown when an illegal index was requested.
Exception thrown when a method call was illegal.
valid()
Check if there is a current element after calls to rewind() or next().
$string
The string representations as generated during construction.
rewind()
Rewind the Iterator to the first element.
rewind()
Rewind the Iterator to the first element.
iterator_to_array(Traversable $it, $use_keys=true)
Copy iterator elements into an array.
Exception thrown to indicate range errors during program execution.
setFlags($flags)
Set behavior flags.
next()
Move forward to next element.
$message
The exception message.
setIteratorClass($itertor_class)
spl_autoload_functions()
Return all registered autoload functionns.
asort()
Sort the entries by values.
This Interface allows to hook into the global count() function.
const ARRAY_AS_PROPS
Array indices can be accessed as properties in read/write.
__construct($path)
Construct a directory iterator from a path-string.
Interface to detect a class is traversable using foreach.
uksort(mixed cmp_function)
Sort the entries by key using user defined function.
iterator_count(Traversable $it)
Count the elements in an iterator.
recursive directory iterator
const CURRENT_AS_PATHNAME
spl_autoload(string $class_name, string $file_extensions=NULL)
Default implementation for __autoload()
Observer of the observer pattern.