Definition at line 47 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 146 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 187 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 81 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 90 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 165 of file ClassLoader.php.
Elgg_ClassLoader::register |
( |
| ) |
|
Registers this instance as an autoloader.
- Returns
- void
Definition at line 155 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 113 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 100 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 136 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 123 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: