4.5. Opl_Loader class
4.5.15. setDefaultHandler()
4.5.14. setCheckFileExists()
« Previous
4.5.16. setDirectory()
Next »

4.5.15. setDefaultHandler()

ConstructStatic method
Visibilitypublic
Referencevoid setDefaultHandler(callback $handler);
Argument list
$handler - callback
The callback to the new default library handler.
Versionssince 2.0-RC1

Sets the default autoloading handler that will be used for all the libraries that do not have their own specific settings. The $handler argument must be a valid PHP callback to the following function or method:

boolean autoloadingHandler(string $library, string $className)

The function must return true, if the standard autoloading process should be still performed or false, if the handler has already found and loaded the requested class.

To disable the default handler feature, you must set the $handler argument to null.

The autoloader is initialized with the OPL handler by default. If you wish to use the autoloader with non-OPL libraries, you should use this method to disable it.

See also:

4.5.15. setDefaultHandler()
4.5. Opl_Loader class
« Previous
4.5.14. setCheckFileExists()
Next »
4.5.16. setDirectory()