Public Member Functions | Protected Member Functions | Protected Attributes

Robo47_Application_Resource_Log Class Reference

List of all members.

Public Member Functions

 getLog ()
 Get Log.
 init ()

Protected Member Functions

 _setupLog ($options)
 Setup Log.

Protected Attributes

 $_log = null

Detailed Description

Definition at line 33 of file Log.php.


Member Function Documentation

Robo47_Application_Resource_Log::_setupLog ( options  )  [protected]

Setup Log.

Parameters:
array $options
Returns:
Robo47_Log

Definition at line 59 of file Log.php.

References Robo47_Log::factory().

Referenced by init().

    {
        $registryKey = null;
        if (isset($options['registryKey'])) {
            $registryKey = $options['registryKey'];
            unset($options['registryKey']);
        }
        $log = Robo47_Log::factory($options);

        if (null !== $registryKey) {
            Zend_Registry::set($registryKey, $log);
        }
        return $log;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Robo47_Application_Resource_Log::getLog (  ) 

Get Log.

Returns:
Robo47_Log

Definition at line 79 of file Log.php.

    {
        return $this->_log;
    }

Robo47_Application_Resource_Log::init (  ) 

Definition at line 42 of file Log.php.

References _setupLog().

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

Here is the call graph for this function:


Member Data Documentation

Robo47_Application_Resource_Log::$_log = null [protected]

Definition at line 40 of file Log.php.


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