Abstrakte Klassen-Vorlage für Konfigurations-Klassen
| copyright | (c) Copyright 2008-2013 by ManuAdminMod (http://www.manuadminmod.de) |
|---|---|
| license | Creative Commons BY-NC-ND 3.0 (http://www.creativecommons.org/licenses/by-nc-nd/3.0/) |
| author | manu (manu@manuadminmod.de) |
| since | 1.0 |
| version | 1.0 |
__construct()
Lädt die Konfiguration in den Speicher
__get(string $offset) : string
string
\Daemon\Lib\Config\UndefinedConfigVariableException |
|---|
string__isset(string $offset) : boolean
string
boolean__set(string $offset, string $value)
This Object is read-only for arrayAccess and overloading
string
string
\BadMethodCallException |
|---|
__unset(string $offset)
This Object is read-only for arrayAccess and overloading
string
\BadMethodCallException |
|---|
offsetExists($offset)
offsetGet($offset)
| see | \Daemon\Lib\Config\ArrayAccess::offsetGet() |
|---|
\Daemon\Lib\Config\UndefinedConfigVariableException |
|---|
offsetSet($offset, $value)
This Object is read-only for arrayAccess and overloading
| see | \Daemon\Lib\Config\ArrayAccess::offsetSet() |
|---|
\BadMethodCallException |
|---|
offsetUnset($offset)
This Object is read-only for arrayAccess and overloading
| see | \Daemon\Lib\Config\ArrayAccess::offsetUnset() |
|---|
\BadMethodCallException |
|---|
secureGet(string $name, mixed $defaultValue) : mixed
Diese Funktion vermeidet eine Exception, wenn ein Zugriff auf eine undefinierte Variable stattfindet. Stattdessen wird der übergebene $defaultValue zurückgegeben.
stringName der Config-Variablen
mixedAlternativ-Wert
mixedisOutdated() : boolean
booleanload() : string[]
string[]checkUpToDate() : void
Wird vor jeden Zugriff auf eine Variable ausgeführt, um zu prüfen, ob die Konfiguration neu geladen werden muss
setConfig(array $config)
string[]Konfiguration aus load()
$config : string[]