PHP Class Horde_Core_ActiveSync_Mail_Draft, horde

Wraps functionality related to handling Draft email messages during sync.
Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_Core_ActiveSync_Mail
Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_atcAdd Attachments to add.
$_atcDelete Attachments to remove
$_draftMessage Horde_ActiveSync_Message_Email Draft Email from client.
$_draftUid integer Existing Draft message's UID.
$_imapMessage Horde_ActiveSync_Imap_Message Existing Draft message.
$_textPart Horde_Mime_Part Text part of Draft message.

Public Methods

Method Description
append ( $folderid ) : array Append the current Draft message to the IMAP server.
getExistingDraftMessage ( string $folderid, integer $uid ) Fetch an existing message from the Draft folder. This message will be expunged after the new draft is appended to the IMAP server.
setDraftMessage ( Horde_ActiveSync_Message_Mail $draft ) Add the Draft message sent from the client.

Protected Methods

Method Description
_handleAttachments ( )

Method Details

_handleAttachments() protected method

protected _handleAttachments ( )

append() public method

Append the current Draft message to the IMAP server.
public append ( $folderid ) : array
return array An array with the following keys: - uid: (integer) The new draft message's IMAP UID. - atchash: (array) An attachment hash of newly added attachments.

getExistingDraftMessage() public method

Fetch an existing message from the Draft folder. This message will be expunged after the new draft is appended to the IMAP server.
public getExistingDraftMessage ( string $folderid, integer $uid )
$folderid string The Draft folder's folderid.
$uid integer The UID of the existing Draft message.

setDraftMessage() public method

Add the Draft message sent from the client.
public setDraftMessage ( Horde_ActiveSync_Message_Mail $draft )
$draft Horde_ActiveSync_Message_Mail The draft message object.

Property Details

$_atcAdd protected_oe property

Attachments to add.
protected $_atcAdd

$_atcDelete protected_oe property

Attachments to remove
protected $_atcDelete

$_draftMessage protected_oe property

Draft Email from client.
protected Horde_ActiveSync_Message_Email $_draftMessage
return Horde_ActiveSync_Message_Email

$_draftUid protected_oe property

Existing Draft message's UID.
protected int $_draftUid
return integer

$_imapMessage protected_oe property

Existing Draft message.
protected Horde_ActiveSync_Imap_Message $_imapMessage
return Horde_ActiveSync_Imap_Message

$_textPart protected_oe property

Text part of Draft message.
protected Horde_Mime_Part $_textPart
return Horde_Mime_Part