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

ParameterBagInterface.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 2.58 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\DependencyInjection\ParameterBag;
 013   
 014  use Symfony\Component\DependencyInjection\Exception\LogicException;
 015  use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
 016   
 017  /**
 018   * ParameterBagInterface.
 019   *
 020   * @author Fabien Potencier <fabien@symfony.com>
 021   */
 022  interface ParameterBagInterface
 023  {
 024      /**
 025       * Clears all parameters.
 026       *
 027       * @throws LogicException if the ParameterBagInterface can not be cleared
 028       */
 029      public function clear();
 030   
 031      /**
 032       * Adds parameters to the service container parameters.
 033       *
 034       * @param array $parameters An array of parameters
 035       *
 036       * @throws LogicException if the parameter can not be added
 037       */
 038      public function add(array $parameters);
 039   
 040      /**
 041       * Gets the service container parameters.
 042       *
 043       * @return array An array of parameters
 044       */
 045      public function all();
 046   
 047      /**
 048       * Gets a service container parameter.
 049       *
 050       * @param string $name The parameter name
 051       *
 052       * @return mixed The parameter value
 053       *
 054       * @throws ParameterNotFoundException if the parameter is not defined
 055       */
 056      public function get($name);
 057   
 058      /**
 059       * Sets a service container parameter.
 060       *
 061       * @param string $name  The parameter name
 062       * @param mixed  $value The parameter value
 063       *
 064       * @throws LogicException if the parameter can not be set
 065       */
 066      public function set($name, $value);
 067   
 068      /**
 069       * Returns true if a parameter name is defined.
 070       *
 071       * @param string $name The parameter name
 072       *
 073       * @return bool true if the parameter name is defined, false otherwise
 074       */
 075      public function has($name);
 076   
 077      /**
 078       * Replaces parameter placeholders (%name%) by their values for all parameters.
 079       */
 080      public function resolve();
 081   
 082      /**
 083       * Replaces parameter placeholders (%name%) by their values.
 084       *
 085       * @param mixed $value A value
 086       *
 087       * @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
 088       */
 089      public function resolveValue($value);
 090   
 091      /**
 092       * Escape parameter placeholders %.
 093       *
 094       * @param mixed $value
 095       *
 096       * @return mixed
 097       */
 098      public function escapeValue($value);
 099   
 100      /**
 101       * Unescape parameter placeholders %.
 102       *
 103       * @param mixed $value
 104       *
 105       * @return mixed
 106       */
 107      public function unescapeValue($value);
 108  }
 109