Class for accessing IMAP's THREAD result
package |
Framework |
---|---|
subpackage |
Storage |
__construct($mailbox = null, $data = null)
init(string $data = null)
string
IMAP response string
is_error() : bool
bool
True if the result is an error, False otherwise
is_empty() : bool
bool
True if the result is empty, False otherwise
count() : int
int
Number of elements
max() : int
int
Maximum message identifier
min() : int
int
Minimum message identifier
slice(mixed $offset, mixed $length)
mixed
Offset (as for PHP's array_slice())
mixed
Number of elements (as for PHP's array_slice())
filter(array $roots)
array
List of IDs of thread roots.
revert()
exists(int $msgid, bool $get_index = false) : boolean
int
Message ID
bool
When enabled element's index will be returned.
Elements are indexed starting with 0
boolean
True on success, False if message ID doesn't exist
get() : array
array
List of message identifiers
get_compressed() : array
array
List of message identifiers
get_element(int|string $index) : int
int|string
Element's index or "FIRST" or "LAST"
int
Element value
get_parameters(string $param = null) : array|string
string
Parameter name
array|string
Response parameters or parameter value
sort(\rcube_result_index $index)
get_tree() : array
array
Data tree
get_thread_data() : array
array
Thread data
build_thread_data($data, &$depth, &$children, $level)
build_thread($items, $level = 1, &$pos)
parse_thread($str, $begin, $end, $depth)
SEPARATOR_ELEMENT
SEPARATOR_ITEM
SEPARATOR_LEVEL
raw_data :
mailbox :
order :