\Horde_ActiveSync_Mime_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.

Summary

Methods
Properties
Constants
__construct()
count()
current()
key()
next()
rewind()
valid()
No public properties found
No constants found
_isAttachment()
_allowRecursion()
$_ignoreAttachments
$_part
$_state
N/A
No private methods found
No private properties found
N/A

Properties

$_ignoreAttachments

$_ignoreAttachments : boolean

Flag to ignore parts that EAS considers attachments.

Type

boolean

$_part

$_part : \Horde_Mime_Part

Base part.

Type

\Horde_Mime_Part

$_state

$_state : object

State data.

Type

object

Methods

__construct()

__construct(\Horde_Mime_Part  $part,   $ignoreAttachments = false) 

Constructor.

Parameters

\Horde_Mime_Part $part
$ignoreAttachments

count()

count() : integer

Returns the number of message parts.

Returns

integer —

Number of message parts.

current()

current() 

key()

key() 

next()

next() 

rewind()

rewind() 

valid()

valid() 

_isAttachment()

_isAttachment(  $part) 

Parameters

$part

_allowRecursion()

_allowRecursion(\Horde_Mime_Part  $part) : boolean

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.

Parameters

\Horde_Mime_Part $part

The part to check.

Returns

boolean —

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