public static function getAnnotationsByTarget($target) { $key = Customweb_Annotation_Util::createName($target); $data = self::read(); if (isset($data[$key])) { return $data[$key]; } else { return array(); } }
public function getAllAnnotations($restriction = false) { $restriction = Customweb_Annotation_Util::resolveClassName($restriction); $result = array(); foreach ($this->annotations as $class => $instances) { if (!$restriction || $restriction == $class) { $result = array_merge($result, $instances); } } return $result; }
public static function resetIgnoredAnnotations() { self::$ignore = array(); }
protected function getDocComment($reflection) { return Customweb_Annotation_Util::getDocComment($reflection); }