PHP Class IMP_Basic_Smime, horde

Author: Mike Cochrane ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends IMP_Basic_Base
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_smime IMP_Smime

Public Methods

Method Description
url ( array $opts = [] )

Protected Methods

Method Description
_getImportKey ( string $filename, string $key = null ) : string Attempt to import a key from form/uploaded data.
_getSecondaryKey ( ) : string | boolean Returns the secondary key if uploaded.
_importKeyDialog ( string $target ) Generates import key dialog.
_init ( )
_printCertInfo ( string $cert = '' ) Print certificate information.
_reloadWindow ( ) Reload the window.
_textWindowOutput ( string $name, string $msg, boolean $html = false ) Output text in a window.

Method Details

_getImportKey() protected method

Attempt to import a key from form/uploaded data.
protected _getImportKey ( string $filename, string $key = null ) : string
$filename string Key file name.
$key string Key string.
return string The key contents.

_getSecondaryKey() protected method

Returns the secondary key if uploaded.
protected _getSecondaryKey ( ) : string | boolean
return string | boolean The key contents or false if not uploaded.

_importKeyDialog() protected method

Generates import key dialog.
protected _importKeyDialog ( string $target )
$target string Which dialog to generate, either 'personal' or 'public'.

_init() protected method

protected _init ( )

_printCertInfo() protected method

Print certificate information.
protected _printCertInfo ( string $cert = '' )
$cert string The S/MIME certificate.

_reloadWindow() protected method

Reload the window.
protected _reloadWindow ( )

_textWindowOutput() protected method

Output text in a window.
protected _textWindowOutput ( string $name, string $msg, boolean $html = false )
$name string The window name.
$msg string The text contents.
$html boolean $msg is HTML format?

url() public static method

public static url ( array $opts = [] )
$opts array

Property Details

$_smime protected property

protected IMP_Smime $_smime
return IMP_Smime