Esempio n. 1
0
 public static function apply($where, ClassDef $class_def)
 {
     $qn = $class_def->get_qualified_name();
     if (isset(self::$forwards[$qn])) {
         foreach (self::$forwards[$qn] as $fwd) {
             if ($fwd[0] == $where) {
                 $thing = $fwd[1];
                 if ($thing instanceof Forward) {
                     foreach ($thing as $call) {
                         call_user_func_array(array($class_def, $call[0]), $call[1]);
                     }
                 } else {
                     $thing($class_def);
                 }
             }
         }
     }
 }
Esempio n. 2
0
 public static function register_class(ClassDef $class)
 {
     self::$classes[$class->get_qualified_name()] = $class;
 }
Esempio n. 3
0
File: phpx.php Progetto: jaz303/phpx
 public static function export_variable_annotation(ClassDef $def, Variable $variable)
 {
     return '$GLOBALS[\'__PHPX_ANNOTATIONS__\'][\'' . $def->get_qualified_name() . ':$' . $variable->get_name() . '\'] = ' . var_export($variable->get_annotation(), true) . ';';
 }