Property | Type | Description | |
---|---|---|---|
$userContentType |
Method | Description | |
---|---|---|
__clone ( ) | Make a deep copy of object. | |
__construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_IdGenerator $idGenerator ) | Create a new SimpleMimeEntity with $headers, $encoder and $cache. | |
__destruct ( ) | Empties it's own contents from the cache. | |
__toString ( ) : string | Returns a string representation of this object. | |
charsetChanged ( string $charset ) | Receive notification that the charset of this entity, or a parent entity has changed. | |
encoderChanged ( Swift_Mime_ContentEncoder $encoder ) | Receive notification that the encoder of this entity or a parent entity has changed. | |
generateId ( ) : string | Generate a new Content-ID or Message-ID for this MIME entity. | |
getBody ( ) : string | Get the body of this entity as a string. | |
getBoundary ( ) : string | Get the boundary used to separate children in this entity. | |
getChildren ( ) : Swift_Mime_MimeEntity[] | Get all children added to this entity. | |
getContentType ( ) : string | Get the Content-type of this entity. | |
getDescription ( ) : string | Get the description of this entity. | |
getEncoder ( ) : Swift_Mime_ContentEncoder | Get the encoder used for the body of this entity. | |
getHeaders ( ) : Swift_Mime_HeaderSet | Get the {@link Swift_Mime_HeaderSet} for this entity. | |
getId ( ) : string | Get the CID of this entity. | |
getMaxLineLength ( ) : integer | Get the maximum line length of the body of this entity. | |
getNestingLevel ( ) : integer | Get the nesting level of this entity. | |
setBody ( mixed $body, string $contentType = null ) | Set the body of this entity, either as a string, or as an instance of {@link Swift_OutputByteStream}. | |
setBoundary ( string $boundary ) | Set the boundary used to separate children in this entity. | |
setChildren ( array $children, integer $compoundLevel = null ) | Set all children of this entity. | |
setContentType ( string $type ) | Set the Content-type of this entity. | |
setDescription ( string $description ) | Set the description of this entity. | |
setEncoder ( Swift_Mime_ContentEncoder $encoder ) | Set the encoder used for the body of this entity. | |
setId ( string $id ) | Set the CID of this entity. | |
setMaxLineLength ( integer $length ) | Set the maximum line length of lines in this body. | |
toByteStream ( Swift_InputByteStream $is ) | Write this entire entity to a {@see Swift_InputByteStream}. | |
toString ( ) : string | Get this entire entity as a string. |
Method | Description | |
---|---|---|
bodyToByteStream ( Swift_InputByteStream $is ) | Write this entire entity to a {@link Swift_InputByteStream}. | |
bodyToString ( ) : string | Get this entire entity as a string. | |
clearCache ( ) | Empty the KeyCache for this entity. | |
fixHeaders ( ) | Re-evaluate what content type and encoding should be used on this entity. | |
getCache ( ) : Swift_KeyCache | Get the KeyCache used in this entity. | |
getHeaderFieldModel ( $field ) | Get the model data (usually an array or a string) for $field. | |
getHeaderParameter ( $field, $parameter ) | Get the parameter value of $parameter on $field header. | |
getIdField ( ) | Get the name of the header that provides the ID of this entity. | |
getIdGenerator ( ) : Swift_IdGenerator | Get the ID generator. | |
setHeaderFieldModel ( $field, $model ) | Set the model data for $field. | |
setHeaderParameter ( $field, $parameter, $value ) | Set the parameter value of $parameter on $field header. |
Method | Description | |
---|---|---|
assertValidBoundary ( $boundary ) | ||
childSortAlgorithm ( $a, $b ) | ||
createChild ( ) | ||
getCompoundLevel ( $children ) | ||
getNeededChildLevel ( $child, $compoundLevel ) | ||
notifyCharsetChanged ( $charset ) | ||
notifyEncoderChanged ( Swift_Mime_ContentEncoder $encoder ) | ||
readStream ( Swift_OutputByteStream $os ) | ||
setContentTypeInHeaders ( $type ) | ||
setEncoding ( $encoding ) | ||
setNestingLevel ( $level ) | ||
sortChildren ( ) |
public __construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_IdGenerator $idGenerator ) | ||
$headers | Swift_Mime_HeaderSet | |
$encoder | Swift_Mime_ContentEncoder | |
$cache | Swift_KeyCache | |
$idGenerator | Swift_IdGenerator |
public __toString ( ) : string | ||
return | string |
protected bodyToByteStream ( Swift_InputByteStream $is ) | ||
$is | Swift_InputByteStream |
protected bodyToString ( ) : string | ||
return | string |
public charsetChanged ( string $charset ) | ||
$charset | string |
public encoderChanged ( Swift_Mime_ContentEncoder $encoder ) | ||
$encoder | Swift_Mime_ContentEncoder |
protected fixHeaders ( ) |
public generateId ( ) : string | ||
return | string |
public getBoundary ( ) : string | ||
return | string |
protected getCache ( ) : Swift_KeyCache | ||
return | Swift_KeyCache |
public getChildren ( ) : Swift_Mime_MimeEntity[] | ||
return | Swift_Mime_MimeEntity[] |
public getContentType ( ) : string | ||
return | string |
public getDescription ( ) : string | ||
return | string |
public getEncoder ( ) : Swift_Mime_ContentEncoder | ||
return | Swift_Mime_ContentEncoder |
protected getHeaderFieldModel ( $field ) |
protected getHeaderParameter ( $field, $parameter ) |
public getHeaders ( ) : Swift_Mime_HeaderSet | ||
return | Swift_Mime_HeaderSet |
protected getIdField ( ) |
protected getIdGenerator ( ) : Swift_IdGenerator | ||
return | Swift_IdGenerator |
public getMaxLineLength ( ) : integer | ||
return | integer |
public getNestingLevel ( ) : integer | ||
return | integer |
public setBoundary ( string $boundary ) | ||
$boundary | string |
public setChildren ( array $children, integer $compoundLevel = null ) | ||
$children | array | |
$compoundLevel | integer | For internal use only |
public setContentType ( string $type ) | ||
$type | string |
public setDescription ( string $description ) | ||
$description | string |
public setEncoder ( Swift_Mime_ContentEncoder $encoder ) | ||
$encoder | Swift_Mime_ContentEncoder |
protected setHeaderFieldModel ( $field, $model ) |
protected setHeaderParameter ( $field, $parameter, $value ) |
public setMaxLineLength ( integer $length ) | ||
$length | integer |
public toByteStream ( Swift_InputByteStream $is ) | ||
$is | Swift_InputByteStream |