コード例 #1
0
 /**
  * 
  * @param Reflector $reflection
  * @return Customweb_Annotation_Cache_Annotation[]
  */
 private function parse(Reflector $reflection)
 {
     $key = Customweb_Annotation_Util::createName($reflection);
     if (!isset(self::$cache[$key])) {
         $data = Customweb_Annotation_Cache_Reader::getAnnotationsByTarget($reflection);
         self::$cache[$key] = $data;
     }
     return self::$cache[$key];
 }
コード例 #2
0
ファイル: Reader.php プロジェクト: xiaoguizhidao/extensiongsd
 public static function getAnnotationsByTarget($target)
 {
     $key = Customweb_Annotation_Util::createName($target);
     $data = self::read();
     if (isset($data[$key])) {
         return $data[$key];
     } else {
         return array();
     }
 }