PHP Класс Ergo\ClassLoader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
export ( ) Exports the classloader path into the PHP system include path
includePaths ( $path ) Prepends one or more items to the include path of the class loader and the php include path.
loadClass ( $className ) SPL autoload function, loads a class file based on the class name.
register ( $paths = [] ) Registers this class as an SPL class loader.
unregister ( ) Unregisters this class as an SPL class loader, does not attempt to unregister include_path entries.

Защищенные методы

Метод Описание
classFile ( $className ) : string Returns the class file for a particular class name

Описание методов

classFile() защищенный Метод

Returns the class file for a particular class name
protected classFile ( $className ) : string
Результат string

export() публичный Метод

Exports the classloader path into the PHP system include path
public export ( )

includePaths() публичный Метод

Prepends one or more items to the include path of the class loader and the php include path.
public includePaths ( $path )

loadClass() публичный Метод

SPL autoload function, loads a class file based on the class name.
public loadClass ( $className )

register() публичный Метод

Registers this class as an SPL class loader.
public register ( $paths = [] )

unregister() публичный Метод

Unregisters this class as an SPL class loader, does not attempt to unregister include_path entries.
public unregister ( )