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

Alias.php

Zuletzt modifiziert: 09.10.2024, 12:54 - Dateigröße: 1.12 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  class Alias
 15  {
 16      private $id;
 17      private $public;
 18   
 19      /**
 20       * @param string $id     Alias identifier
 21       * @param bool   $public If this alias is public
 22       */
 23      public function __construct($id, $public = true)
 24      {
 25          $this->id = strtolower($id);
 26          $this->public = $public;
 27      }
 28   
 29      /**
 30       * Checks if this DI Alias should be public or not.
 31       *
 32       * @return bool
 33       */
 34      public function isPublic()
 35      {
 36          return $this->public;
 37      }
 38   
 39      /**
 40       * Sets if this Alias is public.
 41       *
 42       * @param bool $boolean If this Alias should be public
 43       */
 44      public function setPublic($boolean)
 45      {
 46          $this->public = (bool) $boolean;
 47      }
 48   
 49      /**
 50       * Returns the Id of this alias.
 51       *
 52       * @return string The alias id
 53       */
 54      public function __toString()
 55      {
 56          return $this->id;
 57      }
 58  }
 59