Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
AnnotationCollection.php
01 <?php
02 /**
03 * Zend Framework (http://framework.zend.com/)
04 *
05 * @link http://github.com/zendframework/zf2 for the canonical source repository
06 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
07 * @license http://framework.zend.com/license/new-bsd New BSD License
08 */
09
10 namespace Zend\Code\Annotation;
11
12 use ArrayObject;
13
14 class AnnotationCollection extends ArrayObject
15 {
16 /**
17 * Checks if the collection has annotations for a class
18 *
19 * @param string $class
20 * @return bool
21 */
22 public function hasAnnotation($class)
23 {
24 foreach ($this as $annotation) {
25 if (get_class($annotation) == $class) {
26 return true;
27 }
28 }
29
30 return false;
31 }
32 }
33