class AutoLoader

Class AutoLoader

Methods

static AutoLoader
getLoader()

No description

static array
getFiles()

No description

static 
setFiles(array $files)

No description

static 
addFiles(array $files)

No description

addPsr0(string $prefix, string $path)

No description

addPsr0Map(array $psr0Map)

No description

addPsr4(string $prefix, string $path)

No description

addPsr4Map(array $psr4Map)

No description

array
getPsr4Map()

No description

setPsr4Map(array $psr4Map)

No description

array
getClassMap()

No description

setClassMap(array $classMap)

No description

addClassMap(array $classMap)

No description

register(bool $prepend = false)

Registers this instance as an autoloader.

unRegister()

Un-registers this instance as an autoloader.

bool|null
loadClass(string $class)

Loads the given class or interface.

string|false
findFile(string $class)

Finds the path to the file where the class is defined.

array
getMissingClasses()

No description

Details

at line 69
static AutoLoader getLoader()

Return Value

AutoLoader

at line 93
static array getFiles()

Return Value

array

at line 101
static setFiles(array $files)

Parameters

array $files

at line 109
static addFiles(array $files)

Parameters

array $files

at line 126
addPsr0(string $prefix, string $path)

Parameters

string $prefix
string $path

at line 134
addPsr0Map(array $psr0Map)

Parameters

array $psr0Map Class to filename map

at line 148
addPsr4(string $prefix, string $path)

Parameters

string $prefix
string $path

Exceptions

InvalidArgumentException

at line 163
addPsr4Map(array $psr4Map)

Parameters

array $psr4Map Class to filename map

at line 175
array getPsr4Map()

Return Value

array

at line 183
setPsr4Map(array $psr4Map)

Parameters

array $psr4Map

at line 191
array getClassMap()

Return Value

array

at line 199
setClassMap(array $classMap)

Parameters

array $classMap

at line 207
addClassMap(array $classMap)

Parameters

array $classMap Class to filename map

at line 220
register(bool $prepend = false)

Registers this instance as an autoloader.

Parameters

bool $prepend Whether to prepend the autoloader or not

at line 228
unRegister()

Un-registers this instance as an autoloader.

at line 238
bool|null loadClass(string $class)

Loads the given class or interface.

Parameters

string $class The name of the class

Return Value

bool|null True if loaded, null otherwise

at line 254
string|false findFile(string $class)

Finds the path to the file where the class is defined.

Parameters

string $class The name of the class

Return Value

string|false The path if found, false otherwise

at line 309
array getMissingClasses()

Return Value

array