Constants

INDEX_FILE

INDEX_FILE

File where classes index is stored

Properties

$index

$index : array

Type

array — array('classname' => 'path/to/override', 'classnamecore' => 'path/to/class/core')

$_include_override_path

$_include_override_path : 

Type

$instance

$instance : \Autoload

Type

\Autoload

$root_dir

$root_dir : string

Type

string — Root directory

$class_aliases

$class_aliases : 

Type

Methods

getInstance()

getInstance() : \Autoload

Get instance of autoload (singleton)

Returns

\Autoload

load()

load(string  $classname) 

Retrieve informations about a class in classes index and load it

Parameters

string $classname

generateIndex()

generateIndex() 

Generate classes index

getClassPath()

getClassPath(  $classname) 

Parameters

$classname

__construct()

__construct() 

getClassesFromDir()

getClassesFromDir(string  $path,   $host_mode = false) : array

Retrieve recursively all classes in a directory and its subdirectories

Parameters

string $path

Relativ path from root to the directory

$host_mode

Returns

array

normalizeDirectory()

normalizeDirectory(  $directory) 

Parameters

$directory