PHP Class Horde_ActiveSync_Mime, horde

Since: 2.19.0
Author: Michael J Rubinsky ([email protected])
显示文件 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_base Horde_Mime_Part The composited mime part.
$_hasAttachments boolean Local cache of hasAttachments data.

Public Methods

Method Description
__call ( string $method, array $params ) : mixed Delegate calls to the composed MIME object.
__construct ( Horde_Mime_Part $mime ) Cont'r
__destruct ( )
__get ( string $property ) : mixed Accessor
findBody ( string $subtype = null ) : mixed Finds the main "body" text part (if any) in a message. "Body" data is the first text part under this part. Considers only body data that should be displayed as the main body on an EAS client. I.e., this ignores any text parts contained withing "attachment" parts such as messages/rfc822 attachments.
hasAttachments ( ) : boolean Return the hasAttachments flag
hasiCalendar ( ) : mixed Return the MIME part of the iCalendar attachment, if available.
isAttachment ( string $id, string $mime_type ) : boolean Determines if a MIME type is an attachment.
isEncrypted ( Horde_Mime_Part $mime = null ) : boolean Return the S/MIME encryption status of this message.
isSigned ( Horde_Mime_Part $mime = null ) : boolean Return the S/MIME status of this message (RFC2633)

Method Details

__call() public method

Delegate calls to the composed MIME object.
public __call ( string $method, array $params ) : mixed
$method string The method name.
$params array The parameters.
return mixed

__construct() public method

Cont'r
public __construct ( Horde_Mime_Part $mime )
$mime Horde_Mime_Part The mime data.

__destruct() public method

public __destruct ( )

__get() public method

Accessor
public __get ( string $property ) : mixed
$property string The property name.
return mixed

findBody() public method

Finds the main "body" text part (if any) in a message. "Body" data is the first text part under this part. Considers only body data that should be displayed as the main body on an EAS client. I.e., this ignores any text parts contained withing "attachment" parts such as messages/rfc822 attachments.
public findBody ( string $subtype = null ) : mixed
$subtype string Specifically search for this subtype.
return mixed The MIME ID of the main body part, or null if a body part is not found.

hasAttachments() public method

Return the hasAttachments flag
public hasAttachments ( ) : boolean
return boolean

hasiCalendar() public method

Return the MIME part of the iCalendar attachment, if available.
public hasiCalendar ( ) : mixed
return mixed The mime id of an iCalendar part, if present. Otherwise false.

isAttachment() public method

For our purposes, an attachment is any MIME part that can be downloaded by itself (i.e. all the data needed to view the part is contained within the download data).
public isAttachment ( string $id, string $mime_type ) : boolean
$id string The MIME Id for the part we are checking.
$mime_type string The MIME type.
return boolean True if an attachment.

isEncrypted() public method

Return the S/MIME encryption status of this message.
Since: 2.20.0
public isEncrypted ( Horde_Mime_Part $mime = null ) : boolean
$mime Horde_Mime_Part
return boolean True if message is S/MIME encrypted, otherwise false.

isSigned() public method

Return the S/MIME status of this message (RFC2633)
public isSigned ( Horde_Mime_Part $mime = null ) : boolean
$mime Horde_Mime_Part
return boolean True if message is S/MIME signed, otherwise false.

Property Details

$_base protected_oe property

The composited mime part.
protected Horde_Mime_Part $_base
return Horde_Mime_Part

$_hasAttachments protected_oe property

Local cache of hasAttachments data.
protected bool $_hasAttachments
return boolean