Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

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

Alias.php

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


01  <?php
02   
03  /*
04   * This file is part of the Symfony package.
05   *
06   * (c) Fabien Potencier <fabien@symfony.com>
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * file that was distributed with this source code.
10   */
11   
12  namespace Symfony\Component\DependencyInjection;
13   
14  /**
15   * @api
16   */
17  class Alias
18  {
19      private $id;
20      private $public;
21   
22      /**
23       * Constructor.
24       *
25       * @param string  $id     Alias identifier
26       * @param bool    $public If this alias is public
27       *
28       * @api
29       */
30      public function __construct($id, $public = true)
31      {
32          $this->id = strtolower($id);
33          $this->public = $public;
34      }
35   
36      /**
37       * Checks if this DI Alias should be public or not.
38       *
39       * @return bool
40       *
41       * @api
42       */
43      public function isPublic()
44      {
45          return $this->public;
46      }
47   
48      /**
49       * Sets if this Alias is public.
50       *
51       * @param bool    $boolean If this Alias should be public
52       *
53       * @api
54       */
55      public function setPublic($boolean)
56      {
57          $this->public = (bool) $boolean;
58      }
59   
60      /**
61       * Returns the Id of this alias.
62       *
63       * @return string The alias id
64       *
65       * @api
66       */
67      public function __toString()
68      {
69          return $this->id;
70      }
71  }
72