Documentation

Horde_Compress_Tnef_File extends Horde_Compress_Tnef_Object
in package

Object to parse and represent a generic file encapsulated by a TNEF file.

Tags
author

Michael J Rubinsky mrubinsk@horde.org

category

Horde

copyright

2002-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$content  : mixed
$created  : Horde_Compress_Tnef_Date
$metafile  : mixed
$name  : string
$size  : int
The size of the file's contents in bytes.
$subtype  : string
The MIME subtype
$type  : mixed
The MIME type.
$_data  : string
$_logger  : Horde_Log_Logger
$_options  : array<string|int, mixed>
__construct()  : mixed
setMapiAttribute()  : mixed
Allow this object to set any MAPI attributes it needs to know about, ignore any it doesn't care about.
setTnefAttribute()  : mixed
Allow this object to set any TNEF attributes it needs to know about, ignore any it doesn't care about.
toArray()  : array<string|int, mixed>
Output the data for this object in an array.
_geti()  : int
Pop specified number of bits from the buffer
_getx()  : string
Pop specified number of bytes from the buffer.

Properties

$content

public mixed $content
Tags
mixed

$metafile

public mixed $metafile

$name

public string $name

$size

The size of the file's contents in bytes.

public int $size

$subtype

The MIME subtype

public string $subtype

$type

The MIME type.

public mixed $type
Tags
string

$_logger

protected Horde_Log_Logger $_logger

$_options

protected array<string|int, mixed> $_options

Methods

__construct()

public __construct(mixed $logger[, mixed $data = null ][, mixed $options = array() ]) : mixed
Parameters
$logger : mixed
$data : mixed = null
$options : mixed = array()
Return values
mixed

setMapiAttribute()

Allow this object to set any MAPI attributes it needs to know about, ignore any it doesn't care about.

public setMapiAttribute(mixed $type, mixed $name, mixed $value) : mixed
Parameters
$type : mixed

The attribute type descriptor.

$name : mixed

The attribute name descriptor.

$value : mixed
Return values
mixed

setTnefAttribute()

Allow this object to set any TNEF attributes it needs to know about, ignore any it doesn't care about.

public setTnefAttribute(mixed $attribute, mixed $value, mixed $size) : mixed
Parameters
$attribute : mixed

The attribute descriptor.

$value : mixed

The value from the MAPI stream.

$size : mixed

The byte length of the data, as reported by the MAPI data.

Return values
mixed

toArray()

Output the data for this object in an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
  • type: (string) The MIME type of the content.
  • subtype: (string) The MIME subtype.
  • name: (string) The filename.
  • stream: (string) The file data.

_geti()

Pop specified number of bits from the buffer

protected _geti(string &$data, int $bits) : int
Parameters
$data : string

The data string.

$bits : int

How many bits to retrieve.

Return values
int

The value from $data.

_getx()

Pop specified number of bytes from the buffer.

protected _getx(string &$data, int $bytes) : string
Parameters
$data : string

The data string.

$bytes : int

How many bytes to retrieve.

Return values
string

The specified number of bytes from $data.

Search results