PHP 클래스 IMP_Contents_Message, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$contents IMP_Contents Contents object.
$headersUsed array The list of headers used by this class.

보호된 프로퍼티들

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