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 |
TagManager.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\Reflection\DocBlock;
11
12 use Zend\Code\Generic\Prototype\PrototypeClassFactory;
13 use Zend\Code\Reflection\DocBlock\Tag\TagInterface;
14
15 class TagManager extends PrototypeClassFactory
16 {
17 /**
18 * @return void
19 */
20 public function initializeDefaultTags()
21 {
22 $this->addPrototype(new Tag\ParamTag());
23 $this->addPrototype(new Tag\ReturnTag());
24 $this->addPrototype(new Tag\MethodTag());
25 $this->addPrototype(new Tag\PropertyTag());
26 $this->addPrototype(new Tag\AuthorTag());
27 $this->addPrototype(new Tag\LicenseTag());
28 $this->addPrototype(new Tag\ThrowsTag());
29 $this->setGenericPrototype(new Tag\GenericTag());
30 }
31
32 /**
33 * @param string $tagName
34 * @param string $content
35 * @return TagInterface
36 */
37 public function createTag($tagName, $content = null)
38 {
39 /* @var TagInterface $newTag */
40 $newTag = $this->getClonedPrototype($tagName);
41
42 if ($content) {
43 $newTag->initialize($content);
44 }
45
46 return $newTag;
47 }
48 }
49