PHP Class Horde_Imap_Client_Data_Thread, horde

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

Protected Properties

Свойство Type Description
$_thread array Internal thread data structure. Keys are base values, values are arrays with keys as the ID and values as the level.
$_type string The index type.

Méthodes publiques

Méthode Description
__construct ( array $data, string $type ) Constructor.
count ( )
getThread ( integer $index ) : array Returns the list of messages in a thread.
getType ( ) : string Return the ID type.
messageList ( ) : Horde_Imap_Client_Ids Return the sorted list of messages indices.
serialize ( )
unserialize ( $data )

Méthodes protégées

Méthode Description
_getAllIndices ( ) : array Return all indices.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $data, string $type )
$data array See $_thread.
$type string Either 'sequence' or 'uid'.

_getAllIndices() protected méthode

Return all indices.
protected _getAllIndices ( ) : array
Résultat array An array of indices.

count() public méthode

public count ( )

getThread() public méthode

Returns the list of messages in a thread.
public getThread ( integer $index ) : array
$index integer An index contained in the thread.
Résultat array Keys are indices, values are objects with the following properties: - base: (integer) Base ID of the thread. If null, thread is a single message. - last: (boolean) If true, this is the last index in the sublevel. - level: (integer) The sublevel of the index.

getType() public méthode

Return the ID type.
public getType ( ) : string
Résultat string Either 'sequence' or 'uid'.

messageList() public méthode

Return the sorted list of messages indices.
public messageList ( ) : Horde_Imap_Client_Ids
Résultat Horde_Imap_Client_Ids The sorted list of messages.

serialize() public méthode

public serialize ( )

unserialize() public méthode

public unserialize ( $data )

Property Details

$_thread protected_oe property

Internal thread data structure. Keys are base values, values are arrays with keys as the ID and values as the level.
protected array $_thread
Résultat array

$_type protected_oe property

The index type.
protected string $_type
Résultat string