public function MailhandlerAttachmentEnclosure::__construct in Mailhandler 6.2
Same name and namespace in other branches
- 7.2 plugins/mailhandler/commands/MailhandlerCommandsFiles.class.php \MailhandlerAttachmentEnclosure::__construct()
Constructs an attachment enclosure.
Parameters
string $filename: The file name.
string $mime_type: The mime type.
string $data: The file content.
string $cid: (optional) The Content-ID.
Overrides FeedsEnclosure::__construct
File
- plugins/
mailhandler/ commands/ MailhandlerCommandsFiles.class.php, line 73 - MailhandlerCommandsFiles class.
Class
- MailhandlerAttachmentEnclosure
- Attachment enclosure, can be part of the result array.
Code
public function __construct($filename, $mime_type, $data, $cid = NULL) {
parent::__construct($filename, $mime_type);
$this->data = $data;
$this->cid = $cid;
}