PHP Class Ergo\ClassLoader

Afficher le fichier Open project: 99designs/ergo Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
classFile ( $className ) : string Returns the class file for a particular class name

Method Details

classFile() protected méthode

Returns the class file for a particular class name
protected classFile ( $className ) : string
Résultat string

export() public méthode

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

includePaths() public méthode

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

loadClass() public méthode

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

register() public méthode

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

unregister() public méthode

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