프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$duplicates | boolean | Allow duplicate IDs? |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_ids | mixed | List of IDs. | |
$_sequence | boolean | Are IDs message sequence numbers? | |
$_sorted | boolean | Are IDs sorted? |
메소드 | 설명 | |
---|---|---|
__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 ( ) |
메소드 | 설명 | |
---|---|---|
_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. |
리턴 | array | An array of indices. |
protected _resolveIds ( mixed $ids ) : array | ||
$ids | mixed | Either Horde_Imap_Client_Ids object, array, or sequence string. |
리턴 | array | An array of IDs. |
protected _toSequenceString ( boolean $sort = true ) : string | ||
$sort | boolean | Numerically sort the IDs before creating the range? |
리턴 | string | The IMAP message sequence string. |