IMP_Ajax_Application_Handler_Draft
extends Horde_Core_Ajax_Application_Handler
in package
Defines AJAX actions used for saving compose drafts.
Tags
Table of Contents
Properties
- $disabled : array<string|int, mixed>
- The list of disabled draft actions.
Methods
- autoSaveDraft() : object
- AJAX action: Auto save a draft message.
- saveDraft() : object
- AJAX action: Save a draft message.
- saveTemplate() : object
- AJAX action: Save a template message.
- _draftAction() : object
- Save a draft composed message.
Properties
$disabled
The list of disabled draft actions.
public
array<string|int, mixed>
$disabled
= array()
Methods
autoSaveDraft()
AJAX action: Auto save a draft message.
public
autoSaveDraft() : object
Return values
object —See _draftAction().
saveDraft()
AJAX action: Save a draft message.
public
saveDraft() : object
Return values
object —See _draftAction().
saveTemplate()
AJAX action: Save a template message.
public
saveTemplate() : object
Return values
object —See _draftAction().
_draftAction()
Save a draft composed message.
protected
_draftAction(string $action) : object
See the list of variables needed for IMP_Ajax_Application#composeSetup(). Additional variables used:
- html: (integer) In HTML compose mode?
- message: (string) The message text.
- priority: (string) The priority of the message.
- request_read_receipt: (boolean) Add request read receipt header?
Parameters
- $action : string
-
AJAX action.
Return values
object —An object with the following entries:
- action: (string) The AJAX action string
- success: (integer) 1 on success, 0 on failure.