Function EmailIntegration->save_attachments
Definitions
sources/mail_integration.php
- Save e-mail attachments and attach to body Comcode.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$attachments | array | No | No | required parameter | N/A | N/A | Attachments |
$member_id | MEMBER | No | No | required parameter | N/A | N/A | Member ID |
$member_id_comcode | MEMBER | No | No | required parameter | N/A | N/A | Member ID to save against |
&$body | string | Yes | No | required parameter | N/A | N/A | Comcode body (altered by reference) |
Returns
- List of attachment error messages
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Save e-mail attachments and attach to body Comcode.
*
* @param array $attachments Attachments
* @param MEMBER $member_id Member ID
* @param MEMBER $member_id_comcode Member ID to save against
* @param string $body Comcode body (altered by reference)
* @return array List of attachment error messages
*/
protected function save_attachments(array $attachments, int $member_id, int $member_id_comcode, string &$body) : array
* Save e-mail attachments and attach to body Comcode.
*
* @param array $attachments Attachments
* @param MEMBER $member_id Member ID
* @param MEMBER $member_id_comcode Member ID to save against
* @param string $body Comcode body (altered by reference)
* @return array List of attachment error messages
*/
protected function save_attachments(array $attachments, int $member_id, int $member_id_comcode, string &$body) : array