Add an element to the list.
public add ( mixed $data, boolean $merge = false ) : Horde_Imap_Client_Data_Format_List | ||
$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 | boolean | Merge the contents of any container objects, instead of adding the objects themselves? |
return | Horde_Imap_Client_Data_Format_List | This object to allow for chainable calls (since 2.10.0). |