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

AuthorTag.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.47 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 AuthorTag implements TagInterface
13  {
14      /**
15       * @var string
16       */
17      protected $authorName = null;
18   
19      /**
20       * @var string
21       */
22      protected $authorEmail = null;
23   
24      /**
25       * @return string
26       */
27      public function getName()
28      {
29          return 'author';
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('/^([^\<]*)(\<([^\>]*)\>)?(.*)$/u', $tagDocblockLine, $match)) {
42              return;
43          }
44   
45          if ($match[1] !== '') {
46              $this->authorName = rtrim($match[1]);
47          }
48   
49          if (isset($match[3]) && $match[3] !== '') {
50              $this->authorEmail = $match[3];
51          }
52      }
53   
54      /**
55       * @return null|string
56       */
57      public function getAuthorName()
58      {
59          return $this->authorName;
60      }
61   
62      /**
63       * @return null|string
64       */
65      public function getAuthorEmail()
66      {
67          return $this->authorEmail;
68      }
69   
70      public function __toString()
71      {
72          return 'DocBlock Tag [ * @' . $this->getName() . ' ]' . PHP_EOL;
73      }
74  }
75