| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2011, The Roundcube Dev Team | |
| | |
| | | $this->folders = $folders; |
| | | $this->meta = array('count' => 0); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Initializes object with SORT command response |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Checks if the result is empty |
| | | * |
| | |
| | | { |
| | | return empty($this->sets) || $this->meta['count'] == 0; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Returns number of elements in the result |
| | |
| | | return $this->meta['count']; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Returns number of elements in the result. |
| | | * Alias for count() for compatibility with rcube_result_thread |
| | |
| | | { |
| | | return $this->count(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Reverts order of elements in the result |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Check if the given message ID exists in the object |
| | | * |
| | |
| | | |
| | | return array_search($msgid, $this->index); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Filters data set. Removes elements listed in $ids list. |
| | |
| | | return $this->index; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Return all messages in the result. |
| | | * |
| | |
| | | { |
| | | return ''; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Return result element at specified index |
| | |
| | | default: return $this->index[$idx]; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Returns response parameters, e.g. ESEARCH's MIN/MAX/COUNT/ALL/MODSEQ |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |