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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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