Horde_Mime_Viewer_Base::getConfigParam PHP Method

getConfigParam() public method

Return a configuration parameter for the current viewer.
public getConfigParam ( string $param ) : mixed
$param string The parameter name.
return mixed The value of the parameter; returns null if the parameter doesn't exist.
    public function getConfigParam($param)
    {
        return isset($this->_conf[$param]) ? $this->_conf[$param] : null;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Callback used to return a MIME Viewer object from within certain
  * Viewer drivers.
  *
  * @param Horde_Mime_Viewer_Base $viewer  The MIME Viewer driver
  *                                        requesting the new object.
  * @param Horde_Mime_Part $mime           An object with the data to be
  *                                        rendered.
  * @param string $type                    The MIME type to use for
  *                                        rendering.
  *
  * @return Horde_Mime_Viewer_Base  The newly created instance.
  * @throws Horde_Mime_Viewer_Exception
  */
 public function createCallback(Horde_Mime_Viewer_Base $viewer, Horde_Mime_Part $mime, $type)
 {
     return $this->create($mime, array('contents' => $viewer->getConfigParam('imp_contents'), 'type' => $type));
 }