コード例 #1
0
ファイル: AnnotationLoader.php プロジェクト: voda/formbuilder
 public function load($class)
 {
     $meta = array();
     $ref = new \Nette\Reflection\ClassType($class);
     do {
         foreach ($ref->getProperties() as $property) {
             $m = $this->processProperty($property);
             if ($m) {
                 $meta[$m->name] = $m;
             }
         }
         $ref = $ref->getParentClass();
     } while ($ref);
     return $meta;
 }