Mail: ezcMailStreamFile
[ ]
[ Display example ] [ Mail listing example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailStreamFile
|
Mail part for data in a stream. [
source]
Parents
ezcMailPart
|
--ezcMailFilePart
|
--ezcMailStreamFile
Inherited Constants
From
ezcMailFilePart:
Properties
|
string |
read/write
|
$stream
The stream object to be read and added as an attachment. The mimeType and contentType are set in the constructor or if not specified they are extracted with the fileinfo extension if it is available, otherwise they are set to application/octet-stream. |
Inherited Member Variables
From
ezcMailPart:
Method Summary
|
public ezcMailStreamFile |
__construct(
$fileName, $stream, [$contentType = null], [$mimeType = null] )
Constructs a new attachment with $fileName and $stream. |
|
public string |
generateBody(
)
Returns the contents of the file with the correct encoding. |
Inherited Methods
From
ezcMailFilePart :
From
ezcMailPart :
Methods
__construct
ezcMailStreamFile __construct(
string
$fileName, resource
$stream, [string
$contentType = null], [string
$mimeType = null] )
Constructs a new attachment with $fileName and $stream.
If the $mimeType and $contentType are not specified they are set to application/octet-stream.
Parameters
| Name |
Type |
Description |
$fileName |
string |
|
$stream |
resource |
|
$contentType |
string |
|
$mimeType |
string |
|
Redefinition of
generateBody
string generateBody(
)
Returns the contents of the file with the correct encoding.
The stream might become unusable after this if it doesn't support seek.
Redefinition of
Last updated: Mon, 21 Dec 2009