Class IMP_Ajax_Imple_PassphraseDialog
Attach the passphrase dialog to the page.
Copyright 2010-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
-
Horde_Core_Ajax_Imple
-
IMP_Ajax_Imple_PassphraseDialog
Methods summary
public
|
#
__construct( array $params )
Constructor.
Parameters
- $params
- Configuration parameters.
<pre><span class="php-quote">'id'</span> - [OPTIONAL] The DOM ID to attach to.
<span class="php-quote">'onload'</span> - (boolean) [OPTIONAL] <span class="php-keyword1">If</span> set, will trigger action on page
load.
<span class="php-quote">'params'</span> - (<span class="php-keyword1">array</span>) [OPTIONAL] Any additional parameters to pass.
<span class="php-quote">'reloadurl'</span> - (Horde_Url) [OPTIONAL] Reload using this URL instead of
refreshing the page.
<span class="php-quote">'type'</span> - (string) The dialog type.</pre>
|
public
|
#
attach( )
Attach the object to a javascript event.
Attach the object to a javascript event.
|
public
object
|
#
handle( array $args, array $post )
Perform the given action.
Perform the given action.
Variables required in form input:
'dialog_input' - (string) Input from the dialog screen.
'symmetricid' - (string) The symmetric ID to process.
Parameters
- $args
- Not used.
- $post
- Not used.
Returns
object An object with the following entries:
'error' - (string) An error message.
'success' - (integer) 1 on success, 0 on failure.
|
public
string
|
#
getPassphraseId( )
Generates a unique DOM ID.
Generates a unique DOM ID.
Returns
string A unique DOM ID.
|