Ejemplo n.º 1
0
 private static function stash($where, $class_name, $block)
 {
     $class_name = absolute_class_name($class_name);
     if ($block === null) {
         $proxy = new Forward();
         self::$forwards[$class_name][] = array($where, $proxy);
         return $proxy;
     } else {
         self::$forwards[$class_name][] = array($where, $block);
         return;
     }
 }
Ejemplo n.º 2
0
 public static function lookup($class)
 {
     return self::get_class_definition(absolute_class_name($class));
 }