PHP 클래스 ezcMailFileParser

상속: extends ezcMailPartParser
파일 보기 프로젝트 열기: zetacomponents/mail 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fileClass string Change this to your own file class with: $parser = new ezcMailParser(); $parser->options->fileClass = 'myCustomFileClass'; call $parser->parseMail( $set ); where myCustomFileClass extends ezcMailFile.

공개 메소드들

메소드 설명
__construct ( string $mainType, string $subType, ezcMailHeadersHolder $headers ) Constructs a new ezcMailFileParser with maintype $mainType subtype $subType and headers $headers.
__destruct ( ) Destructs the parser object.
finish ( ) : ezcMailFile Return the result of the parsed file part.
parseBody ( string $line ) Parse the body of a message line by line.

비공개 메소드들

메소드 설명
appendStreamFilters ( string $line ) Sets the correct stream filters for the attachment.
openFile ( string $fileName ) : resource Returns the filepointer of the opened file $fileName in a unique directory.

메소드 상세

__construct() 공개 메소드

Constructs a new ezcMailFileParser with maintype $mainType subtype $subType and headers $headers.
public __construct ( string $mainType, string $subType, ezcMailHeadersHolder $headers )
$mainType string
$subType string
$headers ezcMailHeadersHolder

__destruct() 공개 메소드

Closes and removes any open file.
public __destruct ( )

finish() 공개 메소드

This method is called automatically by the parent part.
public finish ( ) : ezcMailFile
리턴 ezcMailFile

parseBody() 공개 메소드

This method is called by the parent part on a push basis. When there are no more lines the parent part will call finish() to retrieve the mailPart. The file will be decoded and saved to the given temporary directory within a directory based on the process ID and the time.
public parseBody ( string $line )
$line string

프로퍼티 상세

$fileClass 공개적으로 정적으로 프로퍼티

Change this to your own file class with: $parser = new ezcMailParser(); $parser->options->fileClass = 'myCustomFileClass'; call $parser->parseMail( $set ); where myCustomFileClass extends ezcMailFile.
public static string $fileClass
리턴 string