- 4.5. Opl_Loader class
4.5.17. setHandleUnknownLibraries() - 4.5.16. setDirectory()
« Previous - 4.6. Opl_Registry class
Next »
4.5.17. setHandleUnknownLibraries()
| Construct | Static method |
|---|---|
| Visibility | public |
| Reference | void Opl_Loader::setHandleUnknownLibraries( boolean $status ) |
| Argument list |
|
| Versions | since 2.0-RC1 |
With this method, you can control, whether OPL autoloader should handle the libraries that have not been registered with addLibrary() or not. By default, such handling is enabled, however in the following example it conflicts with another autoloader and we must turn it off:
Opl_Loader::addLibrary('Opl', array('directory' => './path/to/Opl/')); Opl_Loader::addLibrary('ExtraLibrary', array('directory' => './path/to/ExtraLibrary/')); Opl_Loader::setHandleUnknownLibraries(false); $class = new SomeExtraLibraryStuff; // do not handle it with OPL
- 4.5.17. setHandleUnknownLibraries()
4.5. Opl_Loader class - « Previous
4.5.16. setDirectory() - Next »
4.6. Opl_Registry class