PHP Class Horde_Imap_Client_Ids, horde

Author: Michael Slusarz ([email protected])
Inheritance: implements Countable, implements Iterator, implements Serializable
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$duplicates boolean Allow duplicate IDs?

Protected Properties

Свойство Type Description
$_ids mixed List of IDs.
$_sequence boolean Are IDs message sequence numbers?
$_sorted boolean Are IDs sorted?

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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.

Method Details

__construct() public méthode

Constructor.
public __construct ( mixed $ids = null, boolean $sequence = false )
$ids mixed See self::add().
$sequence boolean Are $ids message sequence numbers?

__get() public méthode

public __get ( $name )

__toString() public méthode

public __toString ( )

_fromSequenceString() protected méthode

Parse an IMAP message sequence string into a list of indices.
See also: _toSequenceString()
protected _fromSequenceString ( string $str ) : array
$str string The IMAP message sequence string.
Résultat array An array of indices.

_resolveIds() protected méthode

Resolve the $ids input to add() and remove().
protected _resolveIds ( mixed $ids ) : array
$ids mixed Either Horde_Imap_Client_Ids object, array, or sequence string.
Résultat array An array of IDs.

_sort() protected méthode

Sorts the IDs numerically.
protected _sort ( array &$ids )
$ids array The array list.

_toSequenceString() protected méthode

Index Format: range_start:range_end,uid,uid2,...
protected _toSequenceString ( boolean $sort = true ) : string
$sort boolean Numerically sort the IDs before creating the range?
Résultat string The IMAP message sequence string.

add() public méthode

Add IDs to the current object.
public add ( mixed $ids )
$ids mixed Either self::ALL, self::SEARCH_RES, self::LARGEST, Horde_Imap_Client_Ids object, array, or sequence string.

count() public méthode

public count ( )

current() public méthode

public current ( )

isEmpty() public méthode

Is this object empty (i.e. does not contain IDs)?
public isEmpty ( ) : boolean
Résultat boolean True if object is empty.

key() public méthode

public key ( )

next() public méthode

public next ( )

remove() public méthode

Removed IDs from the current object.
Since: 2.17.0
public remove ( mixed $ids )
$ids mixed Either Horde_Imap_Client_Ids object, array, or sequence string.

reverse() public méthode

Reverses the order of the IDs.
public reverse ( )

rewind() public méthode

public rewind ( )

serialize() public méthode

public serialize ( )

sort() public méthode

Sorts the IDs.
public sort ( )

split() public méthode

Split the sequence string at an approximate length.
Since: 2.7.0
public split ( integer $length ) : array
$length integer Length to split.
Résultat array A list containing individual sequence strings.

unserialize() public méthode

public unserialize ( $data )

valid() public méthode

public valid ( )

Property Details

$_ids protected_oe property

List of IDs.
protected mixed $_ids
Résultat mixed

$_sequence protected_oe property

Are IDs message sequence numbers?
protected bool $_sequence
Résultat boolean

$_sorted protected_oe property

Are IDs sorted?
protected bool $_sorted
Résultat boolean

$duplicates public_oe property

Allow duplicate IDs?
public bool $duplicates
Résultat boolean