Definition at line 10 of file AutoloadManager.php.
◆ __construct()
◆ addClasses()
Elgg_AutoloadManager::addClasses |
( |
|
$dir | ) |
|
Add classes found in this directory to the class map and allow classes in subdirectories to be found by PSR-0 rules.
We keep track of which dirs were scanned on previous requests so we don't need to rescan unless the cache is emptied.
- Parameters
-
string | $dir | Directory of classes |
- Returns
- Elgg_AutoloadManager
Definition at line 55 of file AutoloadManager.php.
◆ deleteCache()
Elgg_AutoloadManager::deleteCache |
( |
| ) |
|
◆ getLoader()
Elgg_AutoloadManager::getLoader |
( |
| ) |
|
◆ getSpec()
Elgg_AutoloadManager::getSpec |
( |
| ) |
|
|
protected |
◆ loadCache()
Elgg_AutoloadManager::loadCache |
( |
| ) |
|
Set the state of the manager from the cache.
- Returns
- bool was the cache loaded?
Definition at line 131 of file AutoloadManager.php.
◆ saveCache()
Elgg_AutoloadManager::saveCache |
( |
| ) |
|
◆ scanClassesDir()
Elgg_AutoloadManager::scanClassesDir |
( |
|
$dir | ) |
|
|
protected |
Scan (non-recursively) a /classes directory for PHP files to map directly to classes.
For BC with Elgg 1.8's autoloader we map these files directly, but besides this the autoloader is PSR-0 compatible.
- Parameters
-
string | $dir | Directory of classes |
- Returns
- array
Definition at line 75 of file AutoloadManager.php.
◆ setClassPath()
Elgg_AutoloadManager::setClassPath |
( |
|
$class, |
|
|
|
$path |
|
) |
| |
◆ setStorage()
Elgg_AutoloadManager::setStorage |
( |
ElggCache |
$storage | ) |
|
◆ $altered
Elgg_AutoloadManager::$altered = false |
|
protected |
◆ $loader
Elgg_AutoloadManager::$loader |
|
protected |
◆ $scannedDirs
Elgg_AutoloadManager::$scannedDirs = array() |
|
protected |
◆ $storage
Elgg_AutoloadManager::$storage = null |
|
protected |
◆ FILENAME
const Elgg_AutoloadManager::FILENAME = 'autoload_data.php' |
◆ KEY_CLASSES
const Elgg_AutoloadManager::KEY_CLASSES = 'classes' |
◆ KEY_SCANNED_DIRS
const Elgg_AutoloadManager::KEY_SCANNED_DIRS = 'scannedDirs' |
The documentation for this class was generated from the following file: