public function getRegistry($key = null, $default = null)
    {
        $result = $this->registry;

        if ($key !== null) {
            $result = (isset($result[$key])) ? $result[$key] : $default;
        }

        return $result;
    }
public function getRegistry($key = null, $default = null)
    {
        $result = $this->registry;

        if ($key !== null) {
            $result = (isset($result[$key])) ? $result[$key] : $default;
        }

        return $result;
    }
public function getRegistry ( $ key = null , $ default = null ) { $ result = $ this -> registry ; if ( $ key !== null ) { $ result = ( isset ( $ result [ $ key ] ) ) ? $ result [ $ key ] : $ default ; } return $ result ; }
Getter for registry.

@param string $key     The key to return from registry
@param mixed  $default The default value to return if key does not exist

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed The value from registry if key passed, otherwise the whole registry
Getter for registry .