PHP Class Predis\Autoloader

Author: Eric Naeseth ([email protected])
Datei anzeigen Open project: nrk/predis Class Usage Examples

Public Methods

Method Description
__construct ( string $baseDirectory = __DIR__ )
autoload ( string $className ) Loads a class from a file using its fully qualified name.
register ( boolean $prepend = false ) Registers the autoloader class with the PHP SPL autoloader.

Method Details

__construct() public method

public __construct ( string $baseDirectory = __DIR__ )
$baseDirectory string Base directory where the source files are located.

autoload() public method

Loads a class from a file using its fully qualified name.
public autoload ( string $className )
$className string Fully qualified name of a class.

register() public static method

Registers the autoloader class with the PHP SPL autoloader.
public static register ( boolean $prepend = false )
$prepend boolean Prepend the autoloader on the stack instead of appending it.