Пример #1
0
 public static function initialize($register = true)
 {
     if (self::$_initialized) {
         throw new Exception('ClassLibrary Error: Already initialized.');
     }
     if (stripos(getenv('OS'), 'windows') !== false) {
         self::$_delimiter = ';';
     }
     $args = func_get_args();
     if (count($args)) {
         self::registerPathList($args);
     }
     self::$_initialized = true;
     if ($register) {
         spl_autoload_register('ClassLibrary::loadClass');
     }
 }