PHP 클래스 Mutagenesis\Loader

파일 보기 프로젝트 열기: padraic/mutagenesis 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )