Property | Type | Description | |
---|---|---|---|
$content | string | File Content | |
$contentDisposition | string | Content-Disposition (attachment or inline) | |
$contentId | string | Content-ID | |
$contentType | string | Mime Type | |
$filename | string | Filename | |
$headers | array | An Array of the attachment headers | |
$mimePartStr | string | ||
$stream | resource |
Method | Description | |
---|---|---|
__construct ( string $filename, string $contentType, resource $stream, string $contentDisposition = 'attachment', string $contentId = '', array $headers = [], string $mimePartStr = '' ) | Attachment constructor. | |
getContent ( ) : string | Retrieve the file content in one go Once you retrieve the content you cannot use MimeMailParser_attachment::read() | |
getContentDisposition ( ) : string | Retrieve the Attachment Content-Disposition | |
getContentID ( ) : string | Retrieve the Attachment Content-ID | |
getContentType ( ) : string | Retrieve the Attachment Content-Type | |
getFilename ( ) : string | retrieve the attachment filename | |
getHeaders ( ) : array | Retrieve the Attachment Headers | |
getMimePartStr ( ) : string | Get mime part string for this attachment | |
getStream ( ) : stream | Get a handle to the stream | |
read ( integer $bytes = 2082 ) : string | boolean | Read the contents a few bytes at a time until completed Once read to completion, it always returns false |
public __construct ( string $filename, string $contentType, resource $stream, string $contentDisposition = 'attachment', string $contentId = '', array $headers = [], string $mimePartStr = '' ) | ||
$filename | string | |
$contentType | string | |
$stream | resource | |
$contentDisposition | string | |
$contentId | string | |
$headers | array | |
$mimePartStr | string |
public getContent ( ) : string | ||
return | string |
public getContentDisposition ( ) : string | ||
return | string |
public getContentID ( ) : string | ||
return | string |
public getContentType ( ) : string | ||
return | string |
public getFilename ( ) : string | ||
return | string |
public getHeaders ( ) : array | ||
return | array |
public getMimePartStr ( ) : string | ||
return | string |
protected string $contentDisposition | ||
return | string |
protected array $headers | ||
return | array |