Public Member Functions | Protected Member Functions | Protected Attributes

Robo47_Application_Resource_Config Class Reference

List of all members.

Public Member Functions

 getConfig ()
 Get Config.
 init ()

Protected Member Functions

 _setupConfig ($options)
 Setup Config.

Protected Attributes

 $_config = null

Detailed Description

Definition at line 31 of file Config.php.

Member Function Documentation

Robo47_Application_Resource_Config::_setupConfig ( options  )  [protected]

Setup Config.

array $options

Definition at line 56 of file Config.php.

Referenced by init().

        if (!isset($options['config'])) {
            $message = 'No data for Zend_Config found';
            throw new Robo47_Application_Resource_Exception($message);
        $config = new Zend_Config($options['config']);

        if (isset($options['registryKey'])) {
            Zend_Registry::set($options['registryKey'], $config);
        return $config;

Here is the caller graph for this function:

Robo47_Application_Resource_Config::getConfig (  ) 

Get Config.


Definition at line 75 of file Config.php.

        return $this->_config;

Robo47_Application_Resource_Config::init (  ) 

Definition at line 40 of file Config.php.

References _setupConfig().

        if (!empty($this->_options)) {
            $this->_config = $this->_setupConfig($this->_options);
        } else {
            $message = 'Empty options in resource ' .
            throw new Robo47_Application_Resource_Exception($message);

Here is the call graph for this function:

Member Data Documentation

Robo47_Application_Resource_Config::$_config = null [protected]

Definition at line 38 of file Config.php.

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