library/core/class.autoloader.php
public static function Start() {
      
      self::$Prefixes = array(
         self::CONTEXT_CORE            => 'c',
         self::CONTEXT_APPLICATION     => 'a',
         self::CONTEXT_PLUGIN          => 'p',
         self::CONTEXT_THEME           => 't'
      );
      self::$ContextOrder = array(
         self::CONTEXT_THEME,
         self::CONTEXT_LOCALE,
         self::CONTEXT_PLUGIN,
         self::CONTEXT_APPLICATION,
         self::CONTEXT_CORE
      );
      
      self::$Maps = array();
      self::$MapGroups = array();
   
      // Register autoloader with the SPL
      spl_autoload_register(array('Gdn_Autoloader', 'Lookup'));
      
      // Configure library/core and library/database
      self::RegisterMap(self::MAP_LIBRARY, self::CONTEXT_CORE, PATH_LIBRARY.'/core');
      self::RegisterMap(self::MAP_LIBRARY, self::CONTEXT_CORE, PATH_LIBRARY.'/database');
      self::RegisterMap(self::MAP_LIBRARY, self::CONTEXT_CORE, PATH_LIBRARY.'/vendors');
      
      // Register shutdown function to auto save changed cache files
      register_shutdown_function(array('Gdn_Autoloader', 'Shutdown'));
   }
public static function Start() {
      
      self::$Prefixes = array(
         self::CONTEXT_CORE            => 'c',
         self::CONTEXT_APPLICATION     => 'a',
         self::CONTEXT_PLUGIN          => 'p',
         self::CONTEXT_THEME           => 't'
      );
      self::$ContextOrder = array(
         self::CONTEXT_THEME,
         self::CONTEXT_LOCALE,
         self::CONTEXT_PLUGIN,
         self::CONTEXT_APPLICATION,
         self::CONTEXT_CORE
      );
      
      self::$Maps = array();
      self::$MapGroups = array();
   
      // Register autoloader with the SPL
      spl_autoload_register(array('Gdn_Autoloader', 'Lookup'));
      
      // Configure library/core and library/database
      self::RegisterMap(self::MAP_LIBRARY, self::CONTEXT_CORE, PATH_LIBRARY.'/core');
      self::RegisterMap(self::MAP_LIBRARY, self::CONTEXT_CORE, PATH_LIBRARY.'/database');
      self::RegisterMap(self::MAP_LIBRARY, self::CONTEXT_CORE, PATH_LIBRARY.'/vendors');
      
      // Register shutdown function to auto save changed cache files
      register_shutdown_function(array('Gdn_Autoloader', 'Shutdown'));
   }
public static function Start ( ) { self :: $ Prefixes = array ( self :: CONTEXT_CORE => 'c' , self :: CONTEXT_APPLICATION => 'a' , self :: CONTEXT_PLUGIN => 'p' , self :: CONTEXT_THEME => 't' ) ; self :: $ ContextOrder = array ( self :: CONTEXT_THEME , self :: CONTEXT_LOCALE , self :: CONTEXT_PLUGIN , self :: CONTEXT_APPLICATION , self :: CONTEXT_CORE ) ; self :: $ Maps = array ( ) ; self :: $ MapGroups = array ( ) ; // Register autoloader with the SPL spl_autoload_register ( array ( 'Gdn_Autoloader' , 'Lookup' ) ) ; // Configure library/core and library/database self :: RegisterMap ( self :: MAP_LIBRARY , self :: CONTEXT_CORE , PATH_LIBRARY . '/core' ) ; self :: RegisterMap ( self :: MAP_LIBRARY , self :: CONTEXT_CORE , PATH_LIBRARY . '/database' ) ; self :: RegisterMap ( self :: MAP_LIBRARY , self :: CONTEXT_CORE , PATH_LIBRARY . '/vendors' ) ; // Register shutdown function to auto save changed cache files register_shutdown_function ( array ( 'Gdn_Autoloader' , 'Shutdown' ) ) ; }
Register core mappings

Set up the autoloader with known searchg directories, hook into the SPL autoloader
and load existing caches.

@param void
Register core mappings