Horde_Imap_Client_Data_Format_List
extends Horde_Imap_Client_Data_Format
in package
implements
Countable, IteratorAggregate
Object representation of an IMAP parenthesized list (RFC 3501 [4.4]).
Tags
Interfaces, Classes, Traits and Enums
- Countable
- IteratorAggregate
Table of Contents
- $_data : mixed
- Data.
- __construct() : mixed
- Constructor.
- __toString() : string
- Returns the string value of the raw data.
- add() : Horde_Imap_Client_Data_Format_List
- Add an element to the list.
- count() : mixed
- escape() : string
- Returns the data formatted for output to the IMAP server.
- getData() : mixed
- Returns the raw data.
- getIterator() : mixed
- Iterator loops through the data elements contained in this list.
- verify() : mixed
- Verify the data.
Properties
$_data
Data.
protected
mixed
$_data
Methods
__construct()
Constructor.
public
__construct([mixed $data = null ]) : mixed
Parameters
- $data : mixed = null
-
Data.
Tags
Return values
mixed —__toString()
Returns the string value of the raw data.
public
__toString() : string
Return values
string —String value.
add()
Add an element to the list.
public
add(mixed $data[, bool $merge = false ]) : Horde_Imap_Client_Data_Format_List
Parameters
- $data : mixed
-
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.
- $merge : bool = false
-
Merge the contents of any container objects, instead of adding the objects themselves?
Return values
Horde_Imap_Client_Data_Format_List —This object to allow for chainable calls (since 2.10.0).
count()
public
count() : mixed
Return values
mixed —escape()
Returns the data formatted for output to the IMAP server.
public
escape() : string
Return values
string —IMAP escaped string.
getData()
Returns the raw data.
public
getData() : mixed
Return values
mixed —Raw data.
getIterator()
Iterator loops through the data elements contained in this list.
public
getIterator() : mixed
Return values
mixed —verify()
Verify the data.
public
verify() : mixed