PHP Class Ergo\ClassLoader

Show file Open project: 99designs/ergo Class Usage Examples

Public Methods

Method 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.

Protected Methods

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

Method Details

classFile() protected method

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

export() public method

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

includePaths() public method

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

loadClass() public method

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

register() public method

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

unregister() public method

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