Public Member Functions | Protected Member Functions | Protected Attributes

Robo47_Application_Resource_Service_Gravatar Class Reference

List of all members.

Public Member Functions

 getService ()
 Get Gravatar.
 init ()

Protected Member Functions

 _setupService ($options)
 Setup Gravatar.

Protected Attributes

 $_service = null

Detailed Description

Definition at line 31 of file Gravatar.php.


Member Function Documentation

Robo47_Application_Resource_Service_Gravatar::_setupService ( options  )  [protected]

Setup Gravatar.

Parameters:
array $options
Returns:
Robo47_Service_Gravatar

Definition at line 57 of file Gravatar.php.

Referenced by init().

    {
        $gravatar = new Robo47_Service_Gravatar();

        if (isset($options['rating'])) {
            $gravatar->setRating($options['rating']);
        }

        if (isset($options['size'])) {
            $gravatar->setSize($options['size']);
        }

        if (isset($options['default'])) {
            $gravatar->setDefault($options['default']);
        }

        if (isset($options['cachePrefix'])) {
            $gravatar->setCachePrefix($options['cachePrefix']);
        }

        if (isset($options['useSSL'])) {
            $gravatar->useSSL($options['useSSL']);
        }

        if (isset($options['cache'])) {
            $gravatar->setCache($options['cache']);
        }

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

        return $gravatar;
    }

Here is the caller graph for this function:

Robo47_Application_Resource_Service_Gravatar::getService (  ) 

Get Gravatar.

Returns:
Robo47_Service_Gravatar

Definition at line 97 of file Gravatar.php.

    {
        return $this->_service;
    }

Robo47_Application_Resource_Service_Gravatar::init (  ) 

Definition at line 40 of file Gravatar.php.

References _setupService().

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

Here is the call graph for this function:


Member Data Documentation

Robo47_Application_Resource_Service_Gravatar::$_service = null [protected]

Definition at line 38 of file Gravatar.php.


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