Documentation

Horde_ActiveSync_Mime_Iterator
in package
implements Countable, Iterator

Recursive iterator for Horde_Mime_Part objects. This iterator is self-contained and independent of all other iterators. Adapted from Horde_Mime package. Changed to allow what EAS would consider attachments to be ignored during iteration and to always include the base part.

Tags
author

Michael J Rubinsky mrubinsk@horde.org

author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2015-2020 Horde LLC

license

http://www.horde.org/licenses/gpl GPLv2

since
2.29.0

Interfaces, Classes, Traits and Enums

Countable
Iterator

Table of Contents

$_ignoreAttachments  : bool
Flag to ignore parts that EAS considers attachments.
$_part  : Horde_Mime_Part
Base part.
$_state  : object
State data.
__construct()  : mixed
Constructor.
count()  : int
Returns the number of message parts.
current()  : mixed
key()  : mixed
next()  : mixed
rewind()  : mixed
valid()  : mixed
_allowRecursion()  : bool
Return whether or not to allow recursion into a mime part when iterating all of the parts. So far, only disallows this for message/rfc822 parts to prevent each mime part of the rfc822 part to display as an attachment.
_isAttachment()  : mixed

Properties

$_ignoreAttachments

Flag to ignore parts that EAS considers attachments.

protected bool $_ignoreAttachments

$_part

Base part.

protected Horde_Mime_Part $_part

$_state

State data.

protected object $_state

Methods

__construct()

Constructor.

public __construct(Horde_Mime_Part $part[, mixed $ignoreAttachments = false ]) : mixed
Parameters
$part : Horde_Mime_Part
$ignoreAttachments : mixed = false
Return values
mixed

count()

Returns the number of message parts.

public count() : int
Return values
int

Number of message parts.

current()

public current() : mixed
Return values
mixed

key()

public key() : mixed
Return values
mixed

next()

public next() : mixed
Return values
mixed

rewind()

public rewind() : mixed
Return values
mixed

valid()

public valid() : mixed
Return values
mixed

_allowRecursion()

Return whether or not to allow recursion into a mime part when iterating all of the parts. So far, only disallows this for message/rfc822 parts to prevent each mime part of the rfc822 part to display as an attachment.

protected _allowRecursion(Horde_Mime_Part $part) : bool
Parameters
$part : Horde_Mime_Part

The part to check.

Return values
bool

True is we can descend into the part. False otherwise.

_isAttachment()

protected _isAttachment(mixed $part) : mixed
Parameters
$part : mixed
Return values
mixed

Search results