Class Config (namespace Nette\Config)
Configuration storage.
ArrayObject | --Collection | --Hashtable | --Config
| Public Method Summary | |
|---|---|
| Config |
|
| void |
expand
()
Expand all variables.
|
| static Config |
Creates new configuration object from file.
|
| void |
import
(array|\Traversable $arr)
Import from array or any traversable object.
|
| static void |
registerExtension
(string $extension, string $class)
Registers adapter for given file extension.
|
| void |
save
(string $file, [string $section =
NULL])
Save configuration to file.
|
| array |
toArray
()
Returns an array containing all of the elements in this collection.
|
| & mixed |
__get
(int $key)
Returns item. Do not call directly.
|
| bool |
__isset
(string $key)
Exists item?
|
| void |
__set
(int $key, object $item)
Inserts (replaces) item. Do not call directly.
|
| void |
__unset
(string $key)
Removes the element at the specified position in this list.
|
| Methods Inherited From Hashtable |
|---|
| add(), append(), get(), getKeys(), import(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), search(), throwKeyNotFound() |
| Methods Inherited From Collection |
|---|
| __construct(), append(), beforeAdd(), beforeRemove(), clear(), contains(), exchangeArray(), getClass(), getIterator(), import(), isReadOnly(), remove(), search(), setArray(), setReadOnly(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
| Methods Inherited From ArrayObject (Internal Class) |
|---|
| constructor __construct ( $array ), append ( $value ), asort ( ), count ( ), exchangeArray ( $array ), getArrayCopy ( ), getFlags ( ), getIterator ( ), getIteratorClass ( ), ksort ( ), natcasesort ( ), natsort ( ), offsetExists ( $index ), offsetGet ( $index ), offsetSet ( $index, $newval ), offsetUnset ( $index ), setFlags ( $flags ), setIteratorClass ( $iteratorClass ), uasort ( $cmp_function ), uksort ( $cmp_function ) |
| Constant Summary | |||
|---|---|---|---|
| int | EXPAND |
2 |
line 38 flag |
| int | READONLY |
1 |
line 37 flag |
| Constants Inherited From ArrayObject (Internal Class) |
|---|
| ARRAY_AS_PROPS = 2, STD_PROP_LIST = 1 |
| Variable Summary |
|---|
| Method Details | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 96 __constructpublic Config __construct ([array $arr =
|
|||||||||||||||||||||
|
line 140 expandpublic void expand () Expand all variables.
|
|||||||||||||||||||||
|
line 78 fromFilepublic static Config fromFile (string $file, [string $section = Creates new configuration object from file.
|
|||||||||||||||||||||
|
line 165 importpublic void import (array|\Traversable $arr) Import from array or any traversable object.
|
|||||||||||||||||||||
|
line 55 registerExtensionpublic static void registerExtension (string $extension, string $class) Registers adapter for given file extension.
|
|||||||||||||||||||||
|
line 119 savepublic void save (string $file, [string $section = Save configuration to file.
|
|||||||||||||||||||||
|
line 187 toArraypublic array toArray () Returns an array containing all of the elements in this collection.
|
|||||||||||||||||||||
|
line 209 __getpublic mixed & __get (int $key) Returns item. Do not call directly.
|
|||||||||||||||||||||
|
line 235 __issetpublic bool __isset (string $key) Exists item?
|
|||||||||||||||||||||
|
line 223 __setpublic void __set (int $key, object $item) Inserts (replaces) item. Do not call directly.
|
|||||||||||||||||||||
|
line 247 __unsetpublic void __unset (string $key) Removes the element at the specified position in this list.
|
|||||||||||||||||||||
