Modules/Groupware/Email/Draft/Model/Draft.php
\Conjoon_Modules_Groupware_Email_Draft_Model_Draft
Package: Conjoon\Groupware\Email\Model
- Author
- Thorsten Suckow-Homberg
- Category
- Model
Methods

getDraft(
integer $itemId, integer $userId, string $context
=
''
)
:
arrayReturns an assoc array with the data of an draft. The returned array has all properties as according to Conjoon_Modules_Groupware_Email_Draft.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $itemId | integer | |
| $userId | integer | |
| $context | string | The context used to fetch the draft. Important when dealign with contexts "reply", "reply_all" and "forward". - context "forward": fields "references" and "in_reply_to" will be set to an empty string - context "reply", "reply_all": "in_reply_to" will be set to the message-id of the email, references will be concatenated with the message-id |
| Type | Description |
|---|---|
| array |