PHP Class Horde_ActiveSync_Mime, horde

Since: 2.19.0
Author: Michael J Rubinsky ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_base Horde_Mime_Part The composited mime part.
$_hasAttachments boolean Local cache of hasAttachments data.

Méthodes publiques

Méthode 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 méthode

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

__construct() public méthode

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

__destruct() public méthode

public __destruct ( )

__get() public méthode

Accessor
public __get ( string $property ) : mixed
$property string The property name.
Résultat mixed

findBody() public méthode

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.
Résultat mixed The MIME ID of the main body part, or null if a body part is not found.

hasAttachments() public méthode

Return the hasAttachments flag
public hasAttachments ( ) : boolean
Résultat boolean

hasiCalendar() public méthode

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

isAttachment() public méthode

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.
Résultat boolean True if an attachment.

isEncrypted() public méthode

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
Résultat boolean True if message is S/MIME encrypted, otherwise false.

isSigned() public méthode

Return the S/MIME status of this message (RFC2633)
public isSigned ( Horde_Mime_Part $mime = null ) : boolean
$mime Horde_Mime_Part
Résultat 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
Résultat Horde_Mime_Part

$_hasAttachments protected_oe property

Local cache of hasAttachments data.
protected bool $_hasAttachments
Résultat boolean