Documentation

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
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

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.

        
On this page

Search results