PHP Класс IMP_Contents_Message, horde

Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$contents IMP_Contents Contents object.
$headersUsed array The list of headers used by this class.

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

Свойство Тип Описание
$_cache array Cached values.
$_envelope Horde_Imap_Client_Data_Envelope Envelope object.
$_headers Horde_Mime_Headers Header information.
$_indices IMP_Indices Indices object.
$_peek boolean Don't seen seen flag?

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

Метод Описание
__construct ( IMP_Indices $indices, boolean $peek = false ) Constructor.
addChangedFlag ( ) Add changed flag information to the AJAX queue output, if necessary.
getAddressHeader ( mixed $header, integer $limit = 50 ) : array Return data to build an address header.
getDateOb ( ) : mixed Return date data.
getInlineOutput ( string $mimeid = null ) : array Get the inline display output for a message.
getResentData ( ) : array Return resent message data.
getSaveAs ( ) : Horde_Url Return the save link for the message source.
getSubject ( ) : array Return subject header data.
getUserHeaders ( ) : array Get the user-specified headers.
showMessage ( ) : array Create the object used to display the message.

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

Метод Описание
_formatSummary ( array $summary, boolean $atc = false ) : string Prints out a MIME summary (in HTML).
_getInlineOutput ( array $options ) : array Generate inline message display.
_loadHeaders ( ) Loads the MIME headers object internally.

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

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

Constructor.
public __construct ( IMP_Indices $indices, boolean $peek = false )
$indices IMP_Indices The index of the message.
$peek boolean Don't set seen flag?

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

Prints out a MIME summary (in HTML).
protected _formatSummary ( array $summary, boolean $atc = false ) : string
$summary array Summary information.
$atc boolean Is this an attachment?
Результат string The formatted summary string.

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

Generate inline message display.
protected _getInlineOutput ( array $options ) : array
$options array Options: - mask: (integer) The mask needed for a getSummary() call. - mimeid: (string) Restrict output to this MIME ID (and children).
Результат array See getInlineOutput().

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

Loads the MIME headers object internally.
protected _loadHeaders ( )

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

Add changed flag information to the AJAX queue output, if necessary.
public addChangedFlag ( )

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

Return data to build an address header.
public getAddressHeader ( mixed $header, integer $limit = 50 ) : array
$header mixed The address header name (string) or a Horde_Mime_Rfc822_List object.
$limit integer Limit display to this many addresses. If null, shows all addresses.
Результат array An array with the following entries: - addr: (array) List of addresses/groups. Group keys: 'a' (list of addresses); 'g' (group name) Address keys: 'b' (bare address); 'p' (personal part) Both: 'v' (full value) - limit: (integer) If limit was reached, the number of total addresses. - raw: (string) A raw string to display instead of addresses.

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

Return date data.
public getDateOb ( ) : mixed
Результат mixed Either a IMP_Message_Date object or null if no date information is available.

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

Get the inline display output for a message.
public getInlineOutput ( string $mimeid = null ) : array
$mimeid string Restrict output to this MIME ID (and children).
Результат array An array with the following keys: - atc_parts: (array) The list of attachment MIME IDs. - display_ids: (array) The list of display MIME IDs. - metadata: (array) A list of metadata. - msgtext: (string) The rendered HTML code. - one_part: (boolean) If true, the message only consists of one part.

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

Return resent message data.
public getResentData ( ) : array
Результат array An array of arrays, each sub-array representing a resent action and containing these keys: - date: (IMP_Message_Date) Date object of the resent action. - from: (Horde_Mail_Rfc822_List) Address object containing the address(es) that resent the message.

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

Return the save link for the message source.
public getSaveAs ( ) : Horde_Url
Результат Horde_Url URL for the save link.

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

Return subject header data.
public getSubject ( ) : array
Результат array Array with these possible keys:
  - subject: (string) The subject.
  - subjectlink: (string) The subject with linked URLs/email addresses
                 (if not present, is same as 'subject').
  - title: (string) The title of the page derived from the subject.

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

Get the user-specified headers.
public getUserHeaders ( ) : array
Результат array The list of user-defined headers. Array of arrays with these keys:
  - name: (string) Header name.
  - value: (string) Header value.

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

Create the object used to display the message.
public showMessage ( ) : array
Результат array Array with the following keys: - atc: (object) Attachment information. - download: (string) The URL for the download all action. - label: (string) The attachment label. - list: (array) Attachment information. - md: (array) Metadata. - msgtext: (string) The text of the message. - onepart: (boolean) True if message only contains one part.

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

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

Cached values.
protected array $_cache
Результат array

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

Envelope object.
protected Horde_Imap_Client_Data_Envelope $_envelope
Результат Horde_Imap_Client_Data_Envelope

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

Header information.
protected Horde_Mime_Headers $_headers
Результат Horde_Mime_Headers

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

Indices object.
protected IMP_Indices $_indices
Результат IMP_Indices

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

Don't seen seen flag?
protected bool $_peek
Результат boolean

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

Contents object.
public IMP_Contents $contents
Результат IMP_Contents

$headersUsed публичное статическое свойство

The list of headers used by this class.
public static array $headersUsed
Результат array