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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

GenericTag.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 2.13 KiB


001  <?php
002  /**
003   * Zend Framework (http://framework.zend.com/)
004   *
005   * @link      http://github.com/zendframework/zf2 for the canonical source repository
006   * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
007   * @license   http://framework.zend.com/license/new-bsd New BSD License
008   */
009   
010  namespace Zend\Code\Reflection\DocBlock\Tag;
011   
012  use Zend\Code\Generic\Prototype\PrototypeGenericInterface;
013   
014  class GenericTag implements TagInterface, PrototypeGenericInterface
015  {
016      /**
017       * @var string
018       */
019      protected $name = null;
020   
021      /**
022       * @var string
023       */
024      protected $content = null;
025   
026      /**
027       * @var null|string
028       */
029      protected $contentSplitCharacter = null;
030   
031      /**
032       * @var array
033       */
034      protected $values = array();
035   
036      /**
037       * @param  string $contentSplitCharacter
038       */
039      public function __construct($contentSplitCharacter = ' ')
040      {
041          $this->contentSplitCharacter = $contentSplitCharacter;
042      }
043   
044      /**
045       * @param  string $tagDocBlockLine
046       * @return void
047       */
048      public function initialize($tagDocBlockLine)
049      {
050          $this->parse($tagDocBlockLine);
051      }
052   
053      /**
054       * Get annotation tag name
055       *
056       * @return string
057       */
058      public function getName()
059      {
060          return $this->name;
061      }
062   
063      /**
064       * @param  string $name
065       */
066      public function setName($name)
067      {
068          $this->name = $name;
069      }
070   
071      /**
072       * @return string
073       */
074      public function getContent()
075      {
076          return $this->content;
077      }
078   
079      /**
080       * @param  int $position
081       * @return string
082       */
083      public function returnValue($position)
084      {
085          return $this->values[$position];
086      }
087   
088      /**
089       * Serialize to string
090       *
091       * Required by Reflector
092       *
093       * @todo   What should this do?
094       * @return string
095       */
096      public function __toString()
097      {
098          return 'DocBlock Tag [ * @' . $this->name . ' ]' . PHP_EOL;
099      }
100   
101      /**
102       * @param  string $docBlockLine
103       */
104      protected function parse($docBlockLine)
105      {
106          $this->content = trim($docBlockLine);
107          $this->values = explode($this->contentSplitCharacter, $docBlockLine);
108      }
109  }
110