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

Staging.php

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


001  <?php
002   
003  /*
004   * This file is part of Twig.
005   *
006   * (c) 2012 Fabien Potencier
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  /**
013   * Internal class.
014   *
015   * This class is used by Twig_Environment as a staging area and must not be used directly.
016   *
017   * @author Fabien Potencier <fabien@symfony.com>
018   */
019  class Twig_Extension_Staging extends Twig_Extension
020  {
021      protected $functions = array();
022      protected $filters = array();
023      protected $visitors = array();
024      protected $tokenParsers = array();
025      protected $globals = array();
026      protected $tests = array();
027   
028      public function addFunction($name, $function)
029      {
030          $this->functions[$name] = $function;
031      }
032   
033      /**
034       * {@inheritdoc}
035       */
036      public function getFunctions()
037      {
038          return $this->functions;
039      }
040   
041      public function addFilter($name, $filter)
042      {
043          $this->filters[$name] = $filter;
044      }
045   
046      /**
047       * {@inheritdoc}
048       */
049      public function getFilters()
050      {
051          return $this->filters;
052      }
053   
054      public function addNodeVisitor(Twig_NodeVisitorInterface $visitor)
055      {
056          $this->visitors[] = $visitor;
057      }
058   
059      /**
060       * {@inheritdoc}
061       */
062      public function getNodeVisitors()
063      {
064          return $this->visitors;
065      }
066   
067      public function addTokenParser(Twig_TokenParserInterface $parser)
068      {
069          $this->tokenParsers[] = $parser;
070      }
071   
072      /**
073       * {@inheritdoc}
074       */
075      public function getTokenParsers()
076      {
077          return $this->tokenParsers;
078      }
079   
080      public function addGlobal($name, $value)
081      {
082          $this->globals[$name] = $value;
083      }
084   
085      /**
086       * {@inheritdoc}
087       */
088      public function getGlobals()
089      {
090          return $this->globals;
091      }
092   
093      public function addTest($name, $test)
094      {
095          $this->tests[$name] = $test;
096      }
097   
098      /**
099       * {@inheritdoc}
100       */
101      public function getTests()
102      {
103          return $this->tests;
104      }
105   
106      /**
107       * {@inheritdoc}
108       */
109      public function getName()
110      {
111          return 'staging';
112      }
113  }
114