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