Property | Type | Description | |
---|---|---|---|
$type | string | MIME type. |
Property | Type | Description | |
---|---|---|---|
$_content | string | RTF content. | |
$_size | integer | Size of RTF content. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
_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 ) |
protected _decompress ( ) : string | ||
return | string |