Orion PHP  0.11.12
The PHP5.3 framework
Orion\Core\Config Class Reference

List of all members.

Public Member Functions

 load ()
 __construct ()
 defined ($key)
 get ($key)

Protected Member Functions

 set ($key, $value)

Private Attributes

 $data

Detailed Description

Orion configuration handler class. Handles configuration files loading and variable accessing

Author:
Thibaut Despoulain BSD 4-clauses
Version:
0.11.12

Definition at line 16 of file config.php.


Constructor & Destructor Documentation

Orion\Core\Config::__construct ( )

Definition at line 31 of file config.php.


Member Function Documentation

Orion\Core\Config::defined ( key)

Check if provided key has been defined in current configuration

Parameters:
string$key
Returns:
boolean

Definition at line 41 of file config.php.

Orion\Core\Config::get ( key)

Get provided key's value from current configuration. There is an internal check for key's existance, which throws an Exception if the key is not defined.

Parameters:
string$key
Returns:
mixed

Definition at line 52 of file config.php.

Orion\Core\Config::load ( ) [abstract]

Sets configuration data keys and values This method needs to be overriden in configuration file class

Orion\Core\Config::set ( key,
value 
) [protected]

Define a key/value pair inside current configuration. Use this method inside the overriden load() method of configuration file to define new conf keys.

Parameters:
mixed$key
mixed$value

Definition at line 69 of file config.php.


Member Data Documentation

Orion::Core\Config::$data [private]

Definition at line 23 of file config.php.


The documentation for this class was generated from the following file: