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

ControllerReference.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.34 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\HttpKernel\Controller;
13   
14  /**
15   * Acts as a marker and a data holder for a Controller.
16   *
17   * Some methods in Symfony accept both a URI (as a string) or a controller as
18   * an argument. In the latter case, instead of passing an array representing
19   * the controller, you can use an instance of this class.
20   *
21   * @author Fabien Potencier <fabien@symfony.com>
22   *
23   * @see Symfony\Component\HttpKernel\FragmentRenderer
24   * @see Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface
25   */
26  class ControllerReference
27  {
28      public $controller;
29      public $attributes = array();
30      public $query = array();
31   
32      /**
33       * Constructor.
34       *
35       * @param string $controller The controller name
36       * @param array  $attributes An array of parameters to add to the Request attributes
37       * @param array  $query      An array of parameters to add to the Request query string
38       */
39      public function __construct($controller, array $attributes = array(), array $query = array())
40      {
41          $this->controller = $controller;
42          $this->attributes = $attributes;
43          $this->query = $query;
44      }
45  }
46