[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)




/wp-includes/ -> spl-autoload-compat.php (summary)

Polyfill for SPL autoload feature. This file is separate to prevent compiler notices on the deprecated __autoload() function. See https://core.trac.wordpress.org/ticket/41134

File Size: 100 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions


Functions that are not part of a class:

__autoload( $classname )   X-Ref
Autoloader compatibility callback.

param: string $classname Class to attempt autoloading.

spl_autoload_register( $autoload_function, $throw = true, $prepend = false )   X-Ref
Registers a function to be autoloaded.

param: callable $autoload_function The function to register.
param: bool     $throw             Optional. Whether the function should throw an exception
param: bool     $prepend           Whether the function should be prepended to the stack.

spl_autoload_unregister( $function )   X-Ref
Unregisters an autoloader function.

param: callable $function The function to unregister.
return: bool True if the function was unregistered, false if it could not be.

spl_autoload_functions()   X-Ref
Retrieves the registered autoloader functions.

return: array List of autoloader functions.

Generated: Tue May 21 08:20:01 2019 Cross-referenced by PHPXref 0.7