Methods summary
public static
|
#
registerExtension( string $extension, string $class )
Registers adapter for given file extension.
Registers adapter for given file extension.
Parameters
- $extension
string file extension
- $class
string class name (IConfigAdapter)
|
public static
Nette\Config\Config
|
#
fromFile( string $file, string $section = NULL, integer $flags = Nette\Config\Config::READONLY )
Creates new configuration object from file.
Creates new configuration object from file.
Parameters
- $file
string file name
- $section
string section to load
- $flags
integer flags (readOnly, autoexpand variables)
Returns
|
public
|
|
public
|
#
save( string $file, string $section = NULL )
Save configuration to file.
Save configuration to file.
Parameters
- $file
string file
- $section
string section to write
|
public
|
|
public
|
#
import( array|Traversable $arr )
Import from array or any traversable object.
Import from array or any traversable object.
Parameters
Throws
|
public
array
|
#
toArray( )
Returns an array containing all of the elements in this collection.
Returns an array containing all of the elements in this collection.
Returns
array
|
public
|
#
freeze( )
Makes the object unmodifiable.
Makes the object unmodifiable.
|
public
|
#
__clone( )
Creates a modifiable clone of the object.
Creates a modifiable clone of the object.
|
public
mixed
&
|
#
__get( integer $key )
Returns item. Do not call directly.
Returns item. Do not call directly.
Parameters
Returns
mixed
Throws
|
public
|
#
__set( integer $key, object $item )
Inserts (replaces) item. Do not call directly.
Inserts (replaces) item. Do not call directly.
Parameters
- $key
integer index
- $item
object
Throws
|
public
boolean
|
#
__isset( string $key )
Exists item?
Parameters
Returns
boolean
|
public
|
#
__unset( string $key )
Removes the element at the specified position in this list.
Removes the element at the specified position in this list.
Parameters
Throws
|