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

LicenseTag.php

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


 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\Tag;
 11   
 12  class LicenseTag implements TagInterface
 13  {
 14      /**
 15       * @var string
 16       */
 17      protected $url = null;
 18   
 19      /**
 20       * @var string
 21       */
 22      protected $licenseName = null;
 23   
 24      /**
 25       * @return string
 26       */
 27      public function getName()
 28      {
 29          return 'license';
 30      }
 31   
 32      /**
 33       * Initializer
 34       *
 35       * @param  string $tagDocblockLine
 36       */
 37      public function initialize($tagDocblockLine)
 38      {
 39          $match = array();
 40   
 41          if (!preg_match('#^([\S]*)(?:\s+(.*))?$#m', $tagDocblockLine, $match)) {
 42              return;
 43          }
 44   
 45          if ($match[1] !== '') {
 46              $this->url = trim($match[1]);
 47          }
 48   
 49          if (isset($match[2]) && $match[2] !== '') {
 50              $this->licenseName = $match[2];
 51          }
 52      }
 53   
 54      /**
 55       * @return null|string
 56       */
 57      public function getUrl()
 58      {
 59          return $this->url;
 60      }
 61   
 62      /**
 63       * @return null|string
 64       */
 65      public function getLicenseName()
 66      {
 67          return $this->licenseName;
 68      }
 69   
 70      public function __toString()
 71      {
 72          return 'DocBlock Tag [ * @' . $this->getName() . ' ]' . PHP_EOL;
 73      }
 74  }
 75