Mail: ezcMailMultipart
[ ]
[ Display example ] [ Mail listing example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailMultipart
|
Abstract base class for all multipart types. [
source]
This class provides writing functionality that is common for all multipart types. Multiparts will be written to the mail in the order that they are set to the $parts variable.
Parents
ezcMailPart
|
--ezcMailMultipart
Descendents
Properties
|
string |
read/write
|
$boundary
The boundary string to use between parts. This string is automatically generated and should only be changed for special requirements. |
Member Variables
|
protected array(ezcMailPart) |
$parts
= array()
An array holding the parts of this multipart. |
Method Summary
|
public ezcMailMultipart |
__construct(
$parts )
Constructs a new ezcMailMultipart with the parts $parts. |
|
public string |
generateBody(
)
Returns the generated body for all multipart types. |
|
protected static string |
generateBoundary(
)
Returns a unique boundary string. |
|
public abstract string |
multipartType(
)
Returns the type of multipart. |
Inherited Methods
From
ezcMailPart :
Methods
__construct
ezcMailMultipart __construct(
$parts )
Constructs a new ezcMailMultipart with the parts $parts.
Subclasses typically accept an arbitrary number of parts in the constructor and pass them along using func_get_args().
$parts should be of the format array(array(ezcMailPart)|ezcMailPart)
Subclasses must call this method in the constructor.
Parameters
| Name |
Type |
Description |
$parts |
array |
|
Redefinition of
Redefined in descendants as
generateBody
string generateBody(
)
Returns the generated body for all multipart types.
Redefinition of
generateBoundary
string generateBoundary(
)
Returns a unique boundary string.
multipartType
string multipartType(
)
Returns the type of multipart.
Redefined in descendants as
Last updated: Wed, 18 Jun 2008