class Psr0Loader extends AbstractLoader (View source)

Class Psr0Loader

Methods

register()

Installs this class loader on the SPL autoload stack.

unregister()

Uninstalls this class loader from the SPL autoloader stack.

loadClass(string $className)

Loads the given class or interface.

static string
normalizeClass(string $class)

normalizeClass

static string
normalizePath(string $path, bool $endSlash = true)

normalizePath

__construct(array $namespaces = array())

Creates a new instance that loads classes of the specified namespace.

addNamespace(string $prefix, string $path)

addNamespace

setNamespaceSeparator(string $sep)

Sets the namespace separator used by classes in the namespace of this class loader.

string
getNamespaceSeparator()

Gets the namespace seperator used by classes in the namespace of this class loader.

setFileExtension(string $fileExtension)

Sets the file extension of class files in the namespace of this class loader.

string
getFileExtension()

Gets the file extension of class files in the namespace of this class loader.

Details

Psr0Loader register()

Installs this class loader on the SPL autoload stack.

Return Value

Psr0Loader

Psr0Loader unregister()

Uninstalls this class loader from the SPL autoloader stack.

Return Value

Psr0Loader

at line line 130
Psr0Loader loadClass(string $className)

Loads the given class or interface.

Parameters

string $className The name of the class to load.

Return Value

Psr0Loader

static string normalizeClass(string $class)

normalizeClass

Parameters

string $class

Return Value

string

static string normalizePath(string $path, bool $endSlash = true)

normalizePath

Parameters

string $path
bool $endSlash

Return Value

string

at line line 48
__construct(array $namespaces = array())

Creates a new instance that loads classes of the specified namespace.

Parameters

array $namespaces The namespaces and path mapping.

at line line 61
Psr0Loader addNamespace(string $prefix, string $path)

addNamespace

Parameters

string $prefix
string $path

Return Value

Psr0Loader

at line line 82
Psr0Loader setNamespaceSeparator(string $sep)

Sets the namespace separator used by classes in the namespace of this class loader.

Parameters

string $sep The separator to use.

Return Value

Psr0Loader

at line line 94
string getNamespaceSeparator()

Gets the namespace seperator used by classes in the namespace of this class loader.

Return Value

string

at line line 106
Psr0Loader setFileExtension(string $fileExtension)

Sets the file extension of class files in the namespace of this class loader.

Parameters

string $fileExtension

Return Value

Psr0Loader

at line line 118
string getFileExtension()

Gets the file extension of class files in the namespace of this class loader.

Return Value

string $fileExtension