PHP 클래스 Horde_Compress_Tnef_Rtf, horde

저자: Michael J Rubinsky ([email protected])
상속: extends Horde_Compress_Tnef_Object
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$type string MIME type.

보호된 프로퍼티들

프로퍼티 타입 설명
$_content string RTF content.
$_size integer Size of RTF content.

공개 메소드들

메소드 설명
__construct ( $logger, $data )
__get ( $property )
toArray ( ) : array Output the data for this object in an array.
toPlain ( ) : string Obtain a good-enough-for-our-needs plain text representation of the RTF document.

보호된 메소드들

메소드 설명
_decode ( )
_decompress ( ) : string Decompress compressed RTF. Logic taken and adapted from NasMail RTF plugin.
_rtf2text ( string $text ) : string Parse RTF data and return the best plaintext representation we can.
_rtfIsPlain ( $s )

메소드 상세

__construct() 공개 메소드

public __construct ( $logger, $data )

__get() 공개 메소드

public __get ( $property )

_decode() 보호된 메소드

protected _decode ( )

_decompress() 보호된 메소드

Decompress compressed RTF. Logic taken and adapted from NasMail RTF plugin.
protected _decompress ( ) : string
리턴 string

_rtf2text() 보호된 메소드

Adapted from: http://webcheatsheet.com/php/reading_the_clean_text_from_rtf.php
protected _rtf2text ( string $text ) : string
$text string The RTF text.
리턴 string The plaintext.

_rtfIsPlain() 보호된 메소드

protected _rtfIsPlain ( $s )

toArray() 공개 메소드

Output the data for this object in an array.
public toArray ( ) : array
리턴 array - type: (string) The MIME type of the content. - subtype: (string) The MIME subtype. - name: (string) The filename. - stream: (string) The file data.

toPlain() 공개 메소드

Obtain a good-enough-for-our-needs plain text representation of the RTF document.
public toPlain ( ) : string
리턴 string The plaintext.

프로퍼티 상세

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

RTF content.
protected string $_content
리턴 string

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

Size of RTF content.
protected int $_size
리턴 integer

$type 공개적으로 프로퍼티

MIME type.
public string $type
리턴 string