Esempio n. 1
0
 static function init($options)
 {
     switch ($options['type']) {
         case self::CACHE_TYPE:
             self::$_instance = new RM_Cache_Loader($options['filepath']);
             break;
         case self::SIMPLE_TYPE:
             self::$_instance = new RM_Simple_Loader();
             break;
         default:
             throw new RM_Exception('Wrong autoloader type');
     }
     spl_autoload_register(array('RM_AutoLoader', 'autoload'));
 }