library/core/class.autoloader.php
public function Index($ExtraPaths = NULL) {
      
      $FileMasks = array(
         sprintf(self::LOOKUP_CLASS_MASK, '*'),
         sprintf(self::LOOKUP_INTERFACE_MASK, '*')
      );
      
      $ExtraPathsRemove = NULL;
      if (!is_null($ExtraPaths)) {
         $ExtraPathsRemove = array();
         foreach ($ExtraPaths as $PathOpts) {
            $ExtraPath = GetValue('path', $PathOpts);
            if (array_key_exists($ExtraPath, $this->Paths)) continue;
            
            $ExtraPathsRemove[] = $ExtraPath;
            $ExtraOptions = $this->BuildOptions;
            $ExtraOptions['SplitTopic'] = GetValue('topic', $PathOpts);
            $this->AddPath($ExtraPath, $ExtraOptions);
         }
      }
      
      foreach ($this->Paths as $Path => $PathOptions) {

         $Recursive = GetValue('recursive', $PathOptions);
         $Files = $this->FindFiles($Path, $FileMasks, $Recursive);
         if ($Files === FALSE) continue;
         
         foreach ($Files as $File) {
            $SplitTopic = GetValue('topic', $PathOptions, self::TOPIC_DEFAULT);
            
            $ProvidedClass = $this->GetClassNameFromFile($File);
            if ($ProvidedClass) {
               $this->Map[$SplitTopic][$ProvidedClass] = $File;
               $this->MapInfo['dirty'] = TRUE;
            }
               
//            $ProvidesClasses = $this->Investigate($File);
//            if ($ProvidesClasses === FALSE) continue;
//            
//            foreach ($ProvidesClasses as $ProvidedClass) {
//               $ProvidedClass = strtolower($ProvidedClass);
//               $this->Map[$SplitTopic][$ProvidedClass] = $File;
//               $this->MapInfo['dirty'] = TRUE;
//            }
         }
      }
      
      // Save
      $this->Shutdown();
      
      if (!is_null($ExtraPathsRemove))
         foreach ($ExtraPathsRemove as $RemPath)
            unset($this->Paths[$RemPath]);
   }
public function Index($ExtraPaths = NULL) {
      
      $FileMasks = array(
         sprintf(self::LOOKUP_CLASS_MASK, '*'),
         sprintf(self::LOOKUP_INTERFACE_MASK, '*')
      );
      
      $ExtraPathsRemove = NULL;
      if (!is_null($ExtraPaths)) {
         $ExtraPathsRemove = array();
         foreach ($ExtraPaths as $PathOpts) {
            $ExtraPath = GetValue('path', $PathOpts);
            if (array_key_exists($ExtraPath, $this->Paths)) continue;
            
            $ExtraPathsRemove[] = $ExtraPath;
            $ExtraOptions = $this->BuildOptions;
            $ExtraOptions['SplitTopic'] = GetValue('topic', $PathOpts);
            $this->AddPath($ExtraPath, $ExtraOptions);
         }
      }
      
      foreach ($this->Paths as $Path => $PathOptions) {

         $Recursive = GetValue('recursive', $PathOptions);
         $Files = $this->FindFiles($Path, $FileMasks, $Recursive);
         if ($Files === FALSE) continue;
         
         foreach ($Files as $File) {
            $SplitTopic = GetValue('topic', $PathOptions, self::TOPIC_DEFAULT);
            
            $ProvidedClass = $this->GetClassNameFromFile($File);
            if ($ProvidedClass) {
               $this->Map[$SplitTopic][$ProvidedClass] = $File;
               $this->MapInfo['dirty'] = TRUE;
            }
               
//            $ProvidesClasses = $this->Investigate($File);
//            if ($ProvidesClasses === FALSE) continue;
//            
//            foreach ($ProvidesClasses as $ProvidedClass) {
//               $ProvidedClass = strtolower($ProvidedClass);
//               $this->Map[$SplitTopic][$ProvidedClass] = $File;
//               $this->MapInfo['dirty'] = TRUE;
//            }
         }
      }
      
      // Save
      $this->Shutdown();
      
      if (!is_null($ExtraPathsRemove))
         foreach ($ExtraPathsRemove as $RemPath)
            unset($this->Paths[$RemPath]);
   }
public function Index ( $ ExtraPaths = NULL ) { $ FileMasks = array ( sprintf ( self :: LOOKUP_CLASS_MASK , '*' ) , sprintf ( self :: LOOKUP_INTERFACE_MASK , '*' ) ) ; $ ExtraPathsRemove = NULL ; if ( ! is_null ( $ ExtraPaths ) ) { $ ExtraPathsRemove = array ( ) ; foreach ( $ ExtraPaths as $ PathOpts ) { $ ExtraPath = GetValue ( 'path' , $ PathOpts ) ; if ( array_key_exists ( $ ExtraPath , $ this -> Paths ) ) continue ; $ ExtraPathsRemove [ ] = $ ExtraPath ; $ ExtraOptions = $ this -> BuildOptions ; $ ExtraOptions [ 'SplitTopic' ] = GetValue ( 'topic' , $ PathOpts ) ; $ this -> AddPath ( $ ExtraPath , $ ExtraOptions ) ; } } foreach ( $ this -> Paths as $ Path => $ PathOptions ) { $ Recursive = GetValue ( 'recursive' , $ PathOptions ) ; $ Files = $ this -> FindFiles ( $ Path , $ FileMasks , $ Recursive ) ; if ( $ Files === FALSE ) continue ; foreach ( $ Files as $ File ) { $ SplitTopic = GetValue ( 'topic' , $ PathOptions , self :: TOPIC_DEFAULT ) ; $ ProvidedClass = $ this -> GetClassNameFromFile ( $ File ) ; if ( $ ProvidedClass ) { $ this -> Map [ $ SplitTopic ] [ $ ProvidedClass ] = $ File ; $ this -> MapInfo [ 'dirty' ] = TRUE ; } //            $ProvidesClasses = $this->Investigate($File); //            if ($ProvidesClasses === FALSE) continue; //             //            foreach ($ProvidesClasses as $ProvidedClass) { //               $ProvidedClass = strtolower($ProvidedClass); //               $this->Map[$SplitTopic][$ProvidedClass] = $File; //               $this->MapInfo['dirty'] = TRUE; //            } } } // Save $ this -> Shutdown ( ) ; if ( ! is_null ( $ ExtraPathsRemove ) ) foreach ( $ ExtraPathsRemove as $ RemPath ) unset ( $ this -> Paths [ $ RemPath ] ) ; }
Try to index the entire map

@return void
Try to index the entire map