PHP Class Predis\Autoloader

Author: Eric Naeseth ([email protected])
Afficher le fichier Open project: nrk/predis Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

autoload() public méthode

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 méthode

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.