IMP_Ajax_Application_Handler_ComposeAttach
extends Horde_Core_Ajax_Application_Handler
in package
Defines AJAX actions used to attach files to a compose message.
Tags
Table of Contents
Methods
- addAttachment() : object
- AJAX action: Add an attachment to a compose message.
Methods
addAttachment()
AJAX action: Add an attachment to a compose message.
public
addAttachment() : object
Variables used:
- composeCache: (string) The IMP_Compose cache identifier.
- file_id: (integer) Browser ID of file.
- img_data: (boolean) If true, return image data.
- json_return: (boolean) If true, returns JSON. Otherwise, JSON-HTML.
Return values
object —False on failure, or an object with the following properties:
- action: (string) The action.
- file_id: (integer) Browser ID of file.
- img: (object) Image data, if 'img_data' is set. Properties: related, src
- success: (integer) 1 on success (at least one successful attached file), 0 on failure.