Public Member Functions | Protected Member Functions | Protected Attributes

Robo47_Application_Resource_ErrorHandler Class Reference

List of all members.

Public Member Functions

 getErrorHandler ()
 Get ErrorHandler.
 init ()

Protected Member Functions

 _setupErrorHandler ($options)
 Setup errorHandler.

Protected Attributes

 $_errorHandler = null

Detailed Description

Definition at line 33 of file ErrorHandler.php.


Member Function Documentation

Robo47_Application_Resource_ErrorHandler::_setupErrorHandler ( options  )  [protected]

Setup errorHandler.

Parameters:
array $options

Definition at line 59 of file ErrorHandler.php.

Referenced by init().

    {
        $errorHandler = new Robo47_ErrorHandler();

        if (isset($options['registryKey'])) {
            Zend_Registry::set($options['registryKey'], $errorHandler);
        }
        if (isset($options['setLogFromRegistryKey'])) {
            $log = Zend_Registry::get($options['setLogFromRegistryKey']);
            $errorHandler->setLog($log);
        }
        if (isset($options['logCategory'])) {
            $errorHandler->setLogCategory($options['logCategory']);
        }
        if (isset($options['errorPriorityMapping'])) {
            $errorPriorityMapping = $options['errorPriorityMapping'];
            $errorHandler->setErrorPriorityMapping($errorPriorityMapping);
        }
        if (isset($options['registerAsErrorHandler'])) {
            $errorHandler->registerAsErrorHandler();
        }
        return $errorHandler;
    }

Here is the caller graph for this function:

Robo47_Application_Resource_ErrorHandler::getErrorHandler (  ) 

Get ErrorHandler.

Returns:
Robo47_ErrorHandler

Definition at line 88 of file ErrorHandler.php.

    {
        return $this->_errorHandler;
    }

Robo47_Application_Resource_ErrorHandler::init (  ) 

Definition at line 43 of file ErrorHandler.php.

References _setupErrorHandler().

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

Here is the call graph for this function:


Member Data Documentation

Robo47_Application_Resource_ErrorHandler::$_errorHandler = null [protected]

Definition at line 41 of file ErrorHandler.php.


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