PHP Class IMP_Mime_Viewer_Pgp, horde

This class handles the following MIME types: - application/pgp-encrypted (in multipart/encrypted part) - application/pgp-keys - application/pgp-signature (in multipart/signed part) This driver may add the following parameters to the URL: - pgp_verify_msg: (boolean) Do verification of PGP signed data? - pgp_view_key: (boolean) View PGP key details?
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Mime_Viewer_Base
Mostra file Open project: horde/horde

Protected Properties

Property Type Description
$_capability array This driver's display capabilities.
$_metadata array Metadata for the current viewer/data.
$_sender Horde_Mail_Rfc822_Address The address of the sender.

Public Methods

Method Description
canRender ( string $mode ) : boolean Can this driver render the data?

Protected Methods

Method Description
_getEmbeddedMimeParts ( ) : mixed If this MIME part can contain embedded MIME part(s), and those part(s) exist, return a representation of that data.
_getSender ( ) : Horde_Mail_Rfc822_Address Determine the address of the sender.
_getSymmetricID ( ) : string Generates the symmetric ID for this message.
_outputPGPKey ( ) : string Generates output for 'application/pgp-keys' MIME_Parts.
_outputPGPSigned ( ) : string Generates HTML output for 'multipart/signed' MIME parts.
_render ( ) : array Return the full rendered version of the Horde_Mime_Part object.
_renderInline ( ) : array Return the rendered inline version of the Horde_Mime_Part object.
_renderRaw ( ) : array Return the full rendered version of the Horde_Mime_Part object.

Method Details

_getEmbeddedMimeParts() protected method

If this MIME part can contain embedded MIME part(s), and those part(s) exist, return a representation of that data.
protected _getEmbeddedMimeParts ( ) : mixed
return mixed A Horde_Mime_Part object representing the embedded data. Returns null if no embedded MIME part(s) exist.

_getSender() protected method

Determine the address of the sender.
protected _getSender ( ) : Horde_Mail_Rfc822_Address
return Horde_Mail_Rfc822_Address The from address.

_getSymmetricID() protected method

Generates the symmetric ID for this message.
protected _getSymmetricID ( ) : string
return string Symmetric ID.

_outputPGPKey() protected method

Generates output for 'application/pgp-keys' MIME_Parts.
protected _outputPGPKey ( ) : string
return string The HTML output.

_outputPGPSigned() protected method

Generates HTML output for 'multipart/signed' MIME parts.
protected _outputPGPSigned ( ) : string
return string The HTML output.

_render() protected method

Return the full rendered version of the Horde_Mime_Part object.
protected _render ( ) : array
return array See parent::render().

_renderInline() protected method

Return the rendered inline version of the Horde_Mime_Part object.
protected _renderInline ( ) : array
return array See parent::render().

_renderRaw() protected method

Return the full rendered version of the Horde_Mime_Part object.
protected _renderRaw ( ) : array
return array See parent::render().

canRender() public method

Can this driver render the data?
public canRender ( string $mode ) : boolean
$mode string See parent::canRender().
return boolean See parent::canRender().

Property Details

$_capability protected_oe property

This driver's display capabilities.
protected array $_capability
return array

$_metadata protected_oe property

Metadata for the current viewer/data.
protected array $_metadata
return array

$_sender protected_oe property

The address of the sender.
protected Horde_Mail_Rfc822_Address $_sender
return Horde_Mail_Rfc822_Address