Definition at line 11 of file AutoloadManager.php.
 
◆ __construct()
Constructor. 
- Parameters
 - 
  
    | \Elgg\ClassLoader | $loader | Class loader object  | 
  
   
Definition at line 42 of file AutoloadManager.php.
 
 
◆ 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 56 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 132 of file AutoloadManager.php.
 
 
◆ saveCache()
      
        
          | Elgg\AutoloadManager::saveCache  | 
          ( | 
           | ) | 
           | 
        
      
 
If necessary, save necessary state details. 
- Returns
 - \Elgg\AutoloadManager 
 
Definition at line 115 of file AutoloadManager.php.
 
 
◆ 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 76 of file AutoloadManager.php.
 
 
◆ setClassPath()
      
        
          | Elgg\AutoloadManager::setClassPath  | 
          ( | 
            | 
          $class,  | 
        
        
           | 
           | 
            | 
          $path  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Register the location of a class on the class map. 
- Parameters
 - 
  
    | string | $class | Class name  | 
    | string | $path | Path of class file  | 
  
   
- Returns
 - \Elgg\AutoloadManager 
 
Definition at line 105 of file AutoloadManager.php.
 
 
◆ setStorage()
      
        
          | Elgg\AutoloadManager::setStorage  | 
          ( | 
          \ElggCache  | 
          $storage | ) | 
           | 
        
      
 
Set the cache storage object. 
- Parameters
 - 
  
    | \ElggCache | $storage | Cache object  | 
  
   
- Returns
 - void 
 
Definition at line 193 of file AutoloadManager.php.
 
 
◆ $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: