PHP Класс Horde_Compress_Tnef_Object, horde

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Michael J Rubinsky ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_data string
$_logger Horde_Log_Logger
$_options array

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

Метод Описание
__construct ( $logger, $data = null, $options = [] )
setMapiAttribute ( integer $type, integer $name, $value ) Allow this object to set any MAPI attributes it needs to know about, ignore any it doesn't care about.
setTnefAttribute ( integer $attribute, mixed $value, integer $size ) Allow this object to set any TNEF attributes it needs to know about, ignore any it doesn't care about.
toArray ( ) : array Output the data for this object in an array.

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

Метод Описание
_geti ( &$data, integer $bits ) : integer Pop specified number of bits from the buffer
_getx ( &$data, integer $bytes ) : string Pop specified number of bytes from the buffer.

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

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

public __construct ( $logger, $data = null, $options = [] )

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

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

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

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

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

Allow this object to set any MAPI attributes it needs to know about, ignore any it doesn't care about.
public setMapiAttribute ( integer $type, integer $name, $value )
$type integer The attribute type descriptor.
$name integer The attribute name descriptor.

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

Allow this object to set any TNEF attributes it needs to know about, ignore any it doesn't care about.
public setTnefAttribute ( integer $attribute, mixed $value, integer $size )
$attribute integer The attribute descriptor.
$value mixed The value from the MAPI stream.
$size integer The byte length of the data, as reported by the MAPI data.

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.

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

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

protected string $_data
Результат string

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

protected Horde_Log_Logger $_logger
Результат Horde_Log_Logger

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

protected array $_options
Результат array