\Horde_Imap_Client_Data_Format_List

Object representation of an IMAP parenthesized list (RFC 3501 [4.4]).

Summary

Methods
Properties
Constants
__construct()
__toString()
getData()
escape()
verify()
add()
count()
getIterator()
No public properties found
No constants found
No protected methods found
$_data
N/A
No private methods found
No private properties found
N/A

Properties

$_data

$_data : mixed

Data.

Type

mixed

Methods

__construct()

__construct(mixed  $data = null) 

Constructor.

Parameters

mixed $data

Data.

__toString()

__toString() : string

Returns the string value of the raw data.

Returns

string —

String value.

getData()

getData() : mixed

Returns the raw data.

Returns

mixed —

Raw data.

escape()

escape() : string

Returns the data formatted for output to the IMAP server.

Returns

string —

IMAP escaped string.

verify()

verify() 

Verify the data.

Throws

\Horde_Imap_Client_Data_Format_Exception

add()

add(mixed  $data, boolean  $merge = false) : \Horde_Imap_Client_Data_Format_List

Add an element to the list.

Parameters

mixed $data

The data element(s) to add. Either a Horde_Imap_Client_Data_Format object, a string value that will be treated as an IMAP atom, or an array (or iterable object) of objects to add.

boolean $merge

Merge the contents of any container objects, instead of adding the objects themselves?

Returns

\Horde_Imap_Client_Data_Format_List

This object to allow for chainable calls (since 2.10.0).

count()

count() 

getIterator()

getIterator() 

Iterator loops through the data elements contained in this list.