Property | Type | Description | |
---|---|---|---|
$duplicates | boolean | Allow duplicate IDs? |
Property | Type | Description | |
---|---|---|---|
$_ids | mixed | List of IDs. | |
$_sequence | boolean | Are IDs message sequence numbers? | |
$_sorted | boolean | Are IDs sorted? |
Method | Description | |
---|---|---|
__construct ( mixed $ids = null, boolean $sequence = false ) | Constructor. | |
__get ( $name ) | ||
__toString ( ) | ||
add ( mixed $ids ) | Add IDs to the current object. | |
count ( ) | ||
current ( ) | ||
isEmpty ( ) : boolean | Is this object empty (i.e. does not contain IDs)? | |
key ( ) | ||
next ( ) | ||
remove ( mixed $ids ) | Removed IDs from the current object. | |
reverse ( ) | Reverses the order of the IDs. | |
rewind ( ) | ||
serialize ( ) | ||
sort ( ) | Sorts the IDs. | |
split ( integer $length ) : array | Split the sequence string at an approximate length. | |
unserialize ( $data ) | ||
valid ( ) |
Method | Description | |
---|---|---|
_fromSequenceString ( string $str ) : array | Parse an IMAP message sequence string into a list of indices. | |
_resolveIds ( mixed $ids ) : array | Resolve the $ids input to add() and remove(). | |
_sort ( array &$ids ) | Sorts the IDs numerically. | |
_toSequenceString ( boolean $sort = true ) : string | Create an IMAP message sequence string from a list of indices. |
public __construct ( mixed $ids = null, boolean $sequence = false ) | ||
$ids | mixed | See self::add(). |
$sequence | boolean | Are $ids message sequence numbers? |
protected _fromSequenceString ( string $str ) : array | ||
$str | string | The IMAP message sequence string. |
return | array | An array of indices. |
protected _resolveIds ( mixed $ids ) : array | ||
$ids | mixed | Either Horde_Imap_Client_Ids object, array, or sequence string. |
return | array | An array of IDs. |
protected _toSequenceString ( boolean $sort = true ) : string | ||
$sort | boolean | Numerically sort the IDs before creating the range? |
return | string | The IMAP message sequence string. |
protected bool $_sequence | ||
return | boolean |