Public Member Functions | |
| getLog () | |
| Get Log. | |
| init () | |
Protected Member Functions | |
| _setupLog ($options) | |
| Setup Log. | |
Protected Attributes | |
| $_log = null | |
Definition at line 33 of file Log.php.
| Robo47_Application_Resource_Log::_setupLog | ( | $ | options | ) | [protected] |
Setup Log.
| array | $options |
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;
}


| Robo47_Application_Resource_Log::getLog | ( | ) |
| 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);
}
}

1.7.1