PHP 클래스 Swift_Mime_SimpleMimeEntity

저자: Chris Corbyn
상속: implements Swift_Mime_MimeEntity
파일 보기 프로젝트 열기: swiftmailer/swiftmailer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$userContentType

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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 ( )

메소드 상세

__clone() 공개 메소드

Make a deep copy of object.
public __clone ( )

__construct() 공개 메소드

Create a new SimpleMimeEntity with $headers, $encoder and $cache.
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

__destruct() 공개 메소드

Empties it's own contents from the cache.
public __destruct ( )

__toString() 공개 메소드

Returns a string representation of this object.
또한 보기: toString()
public __toString ( ) : string
리턴 string

bodyToByteStream() 보호된 메소드

Write this entire entity to a {@link Swift_InputByteStream}.
protected bodyToByteStream ( Swift_InputByteStream $is )
$is Swift_InputByteStream

bodyToString() 보호된 메소드

Get this entire entity as a string.
protected bodyToString ( ) : string
리턴 string

charsetChanged() 공개 메소드

Receive notification that the charset of this entity, or a parent entity has changed.
public charsetChanged ( string $charset )
$charset string

clearCache() 보호된 메소드

Empty the KeyCache for this entity.
protected clearCache ( )

encoderChanged() 공개 메소드

Receive notification that the encoder of this entity or a parent entity has changed.
public encoderChanged ( Swift_Mime_ContentEncoder $encoder )
$encoder Swift_Mime_ContentEncoder

fixHeaders() 보호된 메소드

Re-evaluate what content type and encoding should be used on this entity.
protected fixHeaders ( )

generateId() 공개 메소드

Generate a new Content-ID or Message-ID for this MIME entity.
public generateId ( ) : string
리턴 string

getBody() 공개 메소드

Get the body of this entity as a string.
public getBody ( ) : string
리턴 string

getBoundary() 공개 메소드

Get the boundary used to separate children in this entity.
public getBoundary ( ) : string
리턴 string

getCache() 보호된 메소드

Get the KeyCache used in this entity.
protected getCache ( ) : Swift_KeyCache
리턴 Swift_KeyCache

getChildren() 공개 메소드

Get all children added to this entity.
public getChildren ( ) : Swift_Mime_MimeEntity[]
리턴 Swift_Mime_MimeEntity[]

getContentType() 공개 메소드

Get the Content-type of this entity.
public getContentType ( ) : string
리턴 string

getDescription() 공개 메소드

This value comes from the Content-Description header if set.
public getDescription ( ) : string
리턴 string

getEncoder() 공개 메소드

Get the encoder used for the body of this entity.
public getEncoder ( ) : Swift_Mime_ContentEncoder
리턴 Swift_Mime_ContentEncoder

getHeaderFieldModel() 보호된 메소드

Get the model data (usually an array or a string) for $field.
protected getHeaderFieldModel ( $field )

getHeaderParameter() 보호된 메소드

Get the parameter value of $parameter on $field header.
protected getHeaderParameter ( $field, $parameter )

getHeaders() 공개 메소드

Get the {@link Swift_Mime_HeaderSet} for this entity.
public getHeaders ( ) : Swift_Mime_HeaderSet
리턴 Swift_Mime_HeaderSet

getId() 공개 메소드

The CID will only be present in headers if a Content-ID header is present.
public getId ( ) : string
리턴 string

getIdField() 보호된 메소드

Get the name of the header that provides the ID of this entity.
protected getIdField ( )

getIdGenerator() 보호된 메소드

Get the ID generator.
protected getIdGenerator ( ) : Swift_IdGenerator
리턴 Swift_IdGenerator

getMaxLineLength() 공개 메소드

Get the maximum line length of the body of this entity.
public getMaxLineLength ( ) : integer
리턴 integer

getNestingLevel() 공개 메소드

Get the nesting level of this entity.
public getNestingLevel ( ) : integer
리턴 integer

setBody() 공개 메소드

Set the body of this entity, either as a string, or as an instance of {@link Swift_OutputByteStream}.
public setBody ( mixed $body, string $contentType = null )
$body mixed
$contentType string optional

setBoundary() 공개 메소드

Set the boundary used to separate children in this entity.
public setBoundary ( string $boundary )
$boundary string

setChildren() 공개 메소드

Set all children of this entity.
public setChildren ( array $children, integer $compoundLevel = null )
$children array
$compoundLevel integer For internal use only

setContentType() 공개 메소드

Set the Content-type of this entity.
public setContentType ( string $type )
$type string

setDescription() 공개 메소드

This method sets a value in the Content-ID header.
public setDescription ( string $description )
$description string

setEncoder() 공개 메소드

Set the encoder used for the body of this entity.
public setEncoder ( Swift_Mime_ContentEncoder $encoder )
$encoder Swift_Mime_ContentEncoder

setHeaderFieldModel() 보호된 메소드

Set the model data for $field.
protected setHeaderFieldModel ( $field, $model )

setHeaderParameter() 보호된 메소드

Set the parameter value of $parameter on $field header.
protected setHeaderParameter ( $field, $parameter, $value )

setId() 공개 메소드

Set the CID of this entity.
public setId ( string $id )
$id string

setMaxLineLength() 공개 메소드

Though not enforced by the library, lines should not exceed 1000 chars.
public setMaxLineLength ( integer $length )
$length integer

toByteStream() 공개 메소드

Write this entire entity to a {@see Swift_InputByteStream}.
public toByteStream ( Swift_InputByteStream $is )
$is Swift_InputByteStream

toString() 공개 메소드

Get this entire entity as a string.
public toString ( ) : string
리턴 string

프로퍼티 상세

$userContentType 보호되어 있는 프로퍼티

protected $userContentType