PHP Class Horde_Compress_Tnef_Rtf, horde

Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_Compress_Tnef_Object
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$type string MIME type.

Protected Properties

Свойство Type Description
$_content string RTF content.
$_size integer Size of RTF content.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 )

Method Details

__construct() public méthode

public __construct ( $logger, $data )

__get() public méthode

public __get ( $property )

_decode() protected méthode

protected _decode ( )

_decompress() protected méthode

Decompress compressed RTF. Logic taken and adapted from NasMail RTF plugin.
protected _decompress ( ) : string
Résultat string

_rtf2text() protected méthode

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

_rtfIsPlain() protected méthode

protected _rtfIsPlain ( $s )

toArray() public méthode

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

toPlain() public méthode

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

Property Details

$_content protected_oe property

RTF content.
protected string $_content
Résultat string

$_size protected_oe property

Size of RTF content.
protected int $_size
Résultat integer

$type public_oe property

MIME type.
public string $type
Résultat string