PHP Класс Mutagenesis\Loader

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

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

Метод Описание
__construct ( string $ns = 'Mutagenesis', $includePath = null ) Creates a new Loader that loads classes of the specified namespace.
getFileExtension ( ) : string Gets the file extension of class files in the namespace of this class loader.
getIncludePath ( ) : string Gets the base include path for all class files in the namespace of this class loader.
getNamespaceSeparator ( ) : void Gets the namespace seperator used by classes in the namespace of this class loader.
loadClass ( string $className ) : void Loads the given class or interface.
register ( ) Installs this class loader on the SPL autoload stack.
setFileExtension ( string $fileExtension ) Sets the file extension of class files in the namespace of this class loader.
setIncludePath ( string $includePath ) Sets the base include path for all class files in the namespace of this class loader.
setNamespaceSeparator ( string $sep ) Sets the namespace separator used by classes in the namespace of this class loader.
unregister ( ) Uninstalls this class loader from the SPL autoloader stack.

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

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

Creates a new Loader that loads classes of the specified namespace.
public __construct ( string $ns = 'Mutagenesis', $includePath = null )
$ns string The namespace to use.

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

Gets the file extension of class files in the namespace of this class loader.
public getFileExtension ( ) : string
Результат string $fileExtension

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

Gets the base include path for all class files in the namespace of this class loader.
public getIncludePath ( ) : string
Результат string $includePath

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

Gets the namespace seperator used by classes in the namespace of this class loader.
public getNamespaceSeparator ( ) : void
Результат void

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

Loads the given class or interface.
public loadClass ( string $className ) : void
$className string The name of the class to load.
Результат void

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

Installs this class loader on the SPL autoload stack.
public register ( )

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

Sets the file extension of class files in the namespace of this class loader.
public setFileExtension ( string $fileExtension )
$fileExtension string

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

Sets the base include path for all class files in the namespace of this class loader.
public setIncludePath ( string $includePath )
$includePath string

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

Sets the namespace separator used by classes in the namespace of this class loader.
public setNamespaceSeparator ( string $sep )
$sep string The separator to use.

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

Uninstalls this class loader from the SPL autoloader stack.
public unregister ( )