Definition at line 49 of file ClassLoader.php.
Constructor.
- Parameters
-
\Elgg\ClassMap | $map | Class map |
Definition at line 65 of file ClassLoader.php.
Elgg\ClassLoader::addFallback |
( |
|
$path | ) |
|
Add a directory to search if no registered directory is found.
- Parameters
-
- Returns
- void
Definition at line 148 of file ClassLoader.php.
Elgg\ClassLoader::findFile |
( |
|
$class | ) |
|
Finds the path to the file where the class is defined.
- Parameters
-
string | $class | The name of the class |
- Returns
- string|null The path, if found
Definition at line 189 of file ClassLoader.php.
Elgg\ClassLoader::getClassMap |
( |
| ) |
|
Elgg\ClassLoader::getNamespaces |
( |
| ) |
|
Gets the configured namespaces.
- Returns
- array A hash with namespaces as keys and directories as values
Definition at line 83 of file ClassLoader.php.
Elgg\ClassLoader::getPrefixes |
( |
| ) |
|
Gets the configured class prefixes.
- Returns
- array A hash with class prefixes as keys and directories as values
Definition at line 92 of file ClassLoader.php.
Elgg\ClassLoader::loadClass |
( |
|
$class | ) |
|
Loads the given class or interface, possibly updating the class map.
- Parameters
-
string | $class | The name of the class |
- Returns
- void
Definition at line 167 of file ClassLoader.php.
Elgg\ClassLoader::register |
( |
| ) |
|
Registers this instance as an autoloader.
- Returns
- void
Definition at line 157 of file ClassLoader.php.
Elgg\ClassLoader::registerNamespace |
( |
|
$namespace, |
|
|
|
$paths |
|
) |
| |
Registers a namespace.
- Parameters
-
string | $namespace | The namespace |
array | string | $paths | The location(s) of the namespace |
- Returns
- void
Definition at line 115 of file ClassLoader.php.
Elgg\ClassLoader::registerNamespaces |
( |
array |
$namespaces | ) |
|
Registers an array of namespaces.
- Parameters
-
array | $namespaces | An array of namespaces (namespaces as keys and locations as values) |
- Returns
- void
Definition at line 102 of file ClassLoader.php.
Elgg\ClassLoader::registerPrefix |
( |
|
$prefix, |
|
|
|
$paths |
|
) |
| |
Registers a set of classes using the PEAR naming convention.
- Parameters
-
string | $prefix | The classes prefix |
array | string | $paths | The location(s) of the classes |
- Returns
- void
Definition at line 138 of file ClassLoader.php.
Elgg\ClassLoader::registerPrefixes |
( |
array |
$classes | ) |
|
Registers an array of classes using the PEAR naming convention.
- Parameters
-
array | $classes | An array of classes (prefixes as keys and locations as values) |
- Returns
- void
Definition at line 125 of file ClassLoader.php.
Elgg\ClassLoader::$fallbacks = array() |
|
protected |
Elgg\ClassLoader::$namespaces = array() |
|
protected |
Elgg\ClassLoader::$prefixes = array() |
|
protected |
The documentation for this class was generated from the following file: