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

CompiledRoute.php

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


 001  <?php
 002   
 003  /*
 004   * This file is part of the Symfony package.
 005   *
 006   * (c) Fabien Potencier <fabien@symfony.com>
 007   *
 008   * For the full copyright and license information, please view the LICENSE
 009   * file that was distributed with this source code.
 010   */
 011   
 012  namespace Symfony\Component\Routing;
 013   
 014  /**
 015   * CompiledRoutes are returned by the RouteCompiler class.
 016   *
 017   * @author Fabien Potencier <fabien@symfony.com>
 018   */
 019  class CompiledRoute
 020  {
 021      private $variables;
 022      private $tokens;
 023      private $staticPrefix;
 024      private $regex;
 025      private $pathVariables;
 026      private $hostVariables;
 027      private $hostRegex;
 028      private $hostTokens;
 029   
 030      /**
 031       * Constructor.
 032       *
 033       * @param string      $staticPrefix       The static prefix of the compiled route
 034       * @param string      $regex              The regular expression to use to match this route
 035       * @param array       $tokens             An array of tokens to use to generate URL for this route
 036       * @param array       $pathVariables      An array of path variables
 037       * @param string|null $hostRegex          Host regex
 038       * @param array       $hostTokens         Host tokens
 039       * @param array       $hostVariables      An array of host variables
 040       * @param array       $variables          An array of variables (variables defined in the path and in the host patterns)
 041       */
 042      public function __construct($staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array())
 043      {
 044          $this->staticPrefix = (string) $staticPrefix;
 045          $this->regex = $regex;
 046          $this->tokens = $tokens;
 047          $this->pathVariables = $pathVariables;
 048          $this->hostRegex = $hostRegex;
 049          $this->hostTokens = $hostTokens;
 050          $this->hostVariables = $hostVariables;
 051          $this->variables = $variables;
 052      }
 053   
 054      /**
 055       * Returns the static prefix.
 056       *
 057       * @return string The static prefix
 058       */
 059      public function getStaticPrefix()
 060      {
 061          return $this->staticPrefix;
 062      }
 063   
 064      /**
 065       * Returns the regex.
 066       *
 067       * @return string The regex
 068       */
 069      public function getRegex()
 070      {
 071          return $this->regex;
 072      }
 073   
 074      /**
 075       * Returns the host regex
 076       *
 077       * @return string|null The host regex or null
 078       */
 079      public function getHostRegex()
 080      {
 081          return $this->hostRegex;
 082      }
 083   
 084      /**
 085       * Returns the tokens.
 086       *
 087       * @return array The tokens
 088       */
 089      public function getTokens()
 090      {
 091          return $this->tokens;
 092      }
 093   
 094      /**
 095       * Returns the host tokens.
 096       *
 097       * @return array The tokens
 098       */
 099      public function getHostTokens()
 100      {
 101          return $this->hostTokens;
 102      }
 103   
 104      /**
 105       * Returns the variables.
 106       *
 107       * @return array The variables
 108       */
 109      public function getVariables()
 110      {
 111          return $this->variables;
 112      }
 113   
 114      /**
 115       * Returns the path variables.
 116       *
 117       * @return array The variables
 118       */
 119      public function getPathVariables()
 120      {
 121          return $this->pathVariables;
 122      }
 123   
 124      /**
 125       * Returns the host variables.
 126       *
 127       * @return array The variables
 128       */
 129      public function getHostVariables()
 130      {
 131          return $this->hostVariables;
 132      }
 133  }
 134