Exemplo n.º 1
0
Arquivo: phpx.php Projeto: jaz303/phpx
 public static function init()
 {
     if (!self::$phpx_loaded) {
         $d = dirname(__FILE__);
         require_once "{$d}/functions.php";
         require_once "{$d}/access.php";
         require_once "{$d}/simple.php";
         require_once "{$d}/members.php";
         require_once "{$d}/source.php";
         require_once "{$d}/arguments.php";
         require_once "{$d}/parser.php";
         require_once "{$d}/library.php";
         require_once "{$d}/macros.php";
         require_once "{$d}/annotation_parser.php";
         require_once "{$d}/forward.php";
         require_once "{$d}/inheritable_attributes.php";
         Macro::register('\\phpx\\InheritableAttributes');
         Macro::register_finalizer('\\phpx\\InheritableAttributes');
         if (PHPX_INIT) {
             $initializer = PHPX_INIT;
             $initializer();
         }
         self::$phpx_loaded = true;
     }
 }