diff --git a/reference/spl/functions/spl-autoload-call.xml b/reference/spl/functions/spl-autoload-call.xml new file mode 100755 index 0000000000..1586b0c2fe --- /dev/null +++ b/reference/spl/functions/spl-autoload-call.xml @@ -0,0 +1,43 @@ + + + + + spl_autoload-call + + Try all registerd autoload function to load the requested class + + + + Description + + voidspl_autoload-call + stringclass_name + + + + This function can be used to manually search for a class or interface + using the registered __autoload functions. + + + + + diff --git a/reference/spl/functions/spl-autoload-extensions.xml b/reference/spl/functions/spl-autoload-extensions.xml new file mode 100755 index 0000000000..816d1d5d6f --- /dev/null +++ b/reference/spl/functions/spl-autoload-extensions.xml @@ -0,0 +1,47 @@ + + + + + spl_autoload_extensions + + Register and return default file extensions for spl_autoload */ + + + + Description + + stringspl_autoload_extensions + stringfile_extensions + + + + This function allows to modify and check the file extensions the built in + __autoload fallback function spl_autoload will be using. When calling + without an argument it simply returns the current list of extensions each + separated by comma. To modify the list of file extensions simply invoke + the functions with the new list of file extensions to use in a single + string with each extensions separated by comma. + + + + + diff --git a/reference/spl/functions/spl-autoload-functions.xml b/reference/spl/functions/spl-autoload-functions.xml new file mode 100755 index 0000000000..b21277ee5c --- /dev/null +++ b/reference/spl/functions/spl-autoload-functions.xml @@ -0,0 +1,43 @@ + + + + + spl_autoload-functions + + Return all registered __autoload() functionns + + + + Description + + arrayspl_autoload_functions + + + + This function returns an array of all registered __autoload functions. + If the autoload stack if not activated then the return value is false. + If no function is registered the return value will be an empty array. + + + + + diff --git a/reference/spl/functions/spl-autoload-register.xml b/reference/spl/functions/spl-autoload-register.xml new file mode 100755 index 0000000000..78f5cff9eb --- /dev/null +++ b/reference/spl/functions/spl-autoload-register.xml @@ -0,0 +1,52 @@ + + + + + spl_autoload_register + + Register given function as __autoload() implementation + + + + Description + + boolspl_autoload_register + mixedautoload_function + + + + Register a function with the spl provided __autoload stack. If the stack + is not yet activated it will be activated. If no parameter is provided + the default implementation spl_autoload will be registered. When + registering is successful the return value is true and upon failure false + is being returned. + + + If your code has an existing __autoload function then this function must + explicity registered on the __autoload stack. This is because + spl_autoload_register() will effectively replace the engine cache for + the __autoload function by either spl_autoload() or spl_autoload_call(). + + + + + diff --git a/reference/spl/functions/spl-autoload-unregister.xml b/reference/spl/functions/spl-autoload-unregister.xml new file mode 100755 index 0000000000..91f0e0ad85 --- /dev/null +++ b/reference/spl/functions/spl-autoload-unregister.xml @@ -0,0 +1,48 @@ + + + + + spl_autoload_unregister + + Unregister given function as __autoload() implementation + + + + Description + + boolspl_autoload_unregister + mixedautoload_function + + + Unregister a function from the spl provided __autoload stack. If the stack + is activated and empty after unregistering the given function then it will + be deactivated. When unregistering is successful the return value is true + and upon failure false is being returned. + + + When this function results in the autoload stack being activated an + existing __autoload function will not be reactivated. + + + + + diff --git a/reference/spl/functions/spl-autoload.xml b/reference/spl/functions/spl-autoload.xml new file mode 100755 index 0000000000..d0fa7fb352 --- /dev/null +++ b/reference/spl/functions/spl-autoload.xml @@ -0,0 +1,48 @@ + + + + + spl_autoload + + Default implementation for __autoload() + + + + Description + + voidspl_autoload + stringclass_name + stringfile_extensions + + + + This function is intended to be used as a default implementation for + __autoload(). If nothing else is specified and autoload_register() is + called without any parameters then this functions will be used for any + later call to __autoload(). By default it checks all include paths to + contain failnames built up by the lowercase class name appended by the + filename extensions .inc and .php. + + + + +