PHP Класс Horde_Compress_Tnef, horde

The TNEF rendering is based on code by: Graham Norbury Original design by: Thomas Boll , Mark Simpson Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Jan Schneider ([email protected])
Автор: Michael Slusarz ([email protected])
Автор: Michael J Rubinsky ([email protected])
Наследование: extends Horde_Compress_Base
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$canDecompress

Защищенные свойства (Protected)

Свойство Тип Описание
$_attachments Collection of embedded TNEF attachments within the outer TNEF file.
$_currentObject Horde_Compress_Tnef_Object The TNEF object currently being decoded.
$_files Collection of files contained in the TNEF data.
$_msgInfo Horde_Compress_Tnef_MessageData

Открытые методы

Метод Описание
decompress ( $data, array $params = [] ) : array Decompress the TNEF data. For BC reasons we can only return a numerically indexed array of object data. For more detailed information, use self::getFiles(), self::getAttachements(), and self::getMsgInfo().
getAttachments ( ) : array Return the collection of embedded attachments.
getFiles ( ) : array Return the collection of files in the TNEF data.
getMsgInfo ( ) : array Return the message information data.
setCurrentObject ( Horde_Compress_Tnef_Object $object ) Sets the current object being decompressed.

Защищенные методы

Метод Описание
_decodeAttachment ( &$data ) : [type] Decodes all LVL_ATTACHMENT data. Attachment data MUST be at the end of TNEF stream. First LVL_ATTACHMENT MUST be ARENDDATA (attAttachRendData).
_decodeAttribute ( &$data ) Decode a single attribute.
_decodeMessageProperty ( &$data ) : [type] Decodes TNEF attributes.
_extractMapiAttributes ( string $data ) Extract a set of encapsulated MAPI properties. Normally either embedded in an attachment structure, or an idMessageProperty structure.
_geti ( &$data, integer $bits ) : TODO Pop specified number of bits from the buffer
_getx ( &$data, integer $bytes ) Pop specified number of bytes from the buffer.
_toNamespaceGUID ( $value )

Описание методов

_decodeAttachment() защищенный Метод

From MS-OXTNEF: ; An attachment is determined/delimited by attAttachRendData, followed by ; other encoded attributes, if any, and ending with attAttachment ; if there are any encoded properties. AttachData = AttachRendData [*AttachAttribute] [AttachProps] AttachRendData = attrLevelAttachment idAttachRendData Length Data Checksum AttachAttribute = attrLevelAttachment idAttachAttr Length Data Checksum AttachProps = attrLevelAttachment idAttachment Length Data Checksum
protected _decodeAttachment ( &$data ) : [type]
Результат [type]

_decodeAttribute() защищенный Метод

Decode a single attribute.
protected _decodeAttribute ( &$data )

_decodeMessageProperty() защищенный Метод

Decodes TNEF attributes.
protected _decodeMessageProperty ( &$data ) : [type]
Результат [type]

_extractMapiAttributes() защищенный Метод

Extract a set of encapsulated MAPI properties. Normally either embedded in an attachment structure, or an idMessageProperty structure.
protected _extractMapiAttributes ( string $data )
$data string The data string.

_geti() защищенный Метод

Pop specified number of bits from the buffer
protected _geti ( &$data, integer $bits ) : TODO
$bits integer How many bits to retrieve.
Результат TODO

_getx() защищенный Метод

Pop specified number of bytes from the buffer.
protected _getx ( &$data, integer $bytes )
$bytes integer How many bytes to retrieve.

_toNamespaceGUID() защищенный Метод

protected _toNamespaceGUID ( $value )

decompress() публичный Метод

Decompress the TNEF data. For BC reasons we can only return a numerically indexed array of object data. For more detailed information, use self::getFiles(), self::getAttachements(), and self::getMsgInfo().
public decompress ( $data, array $params = [] ) : array
$params array
Результат array The decompressed data.

getAttachments() публичный Метод

Return the collection of embedded attachments.
public getAttachments ( ) : array
Результат array @see self::$_attachments

getFiles() публичный Метод

Return the collection of files in the TNEF data.
public getFiles ( ) : array
Результат array @see self::$_files

getMsgInfo() публичный Метод

Return the message information data.
public getMsgInfo ( ) : array
Результат array @see self::$_msgInfo

setCurrentObject() публичный Метод

Sets the current object being decompressed.
public setCurrentObject ( Horde_Compress_Tnef_Object $object )
$object Horde_Compress_Tnef_Object

Описание свойств

$_attachments защищенное свойство

Collection of embedded TNEF attachments within the outer TNEF file.
protected $_attachments

$_currentObject защищенное свойство

The TNEF object currently being decoded.
protected Horde_Compress_Tnef_Object $_currentObject
Результат Horde_Compress_Tnef_Object

$_files защищенное свойство

Collection of files contained in the TNEF data.
protected $_files

$_msgInfo защищенное свойство

protected Horde_Compress_Tnef_MessageData $_msgInfo
Результат Horde_Compress_Tnef_MessageData

$canDecompress публичное свойство

public $canDecompress