roundcubemail/program/lib/Roundcube/rcube_imap.php
public function set_search_set($set)
    {
        $set = (array)$set;

        $this->search_string     = $set[0];
        $this->search_set        = $set[1];
        $this->search_charset    = $set[2];
        $this->search_sort_field = $set[3];
        $this->search_sorted     = $set[4];
        $this->search_threads    = is_a($this->search_set, 'rcube_result_thread');

        if (is_a($this->search_set, 'rcube_result_multifolder')) {
            $this->set_threading(false);
        }
    }
public function set_search_set($set)
    {
        $set = (array)$set;

        $this->search_string     = $set[0];
        $this->search_set        = $set[1];
        $this->search_charset    = $set[2];
        $this->search_sort_field = $set[3];
        $this->search_sorted     = $set[4];
        $this->search_threads    = is_a($this->search_set, 'rcube_result_thread');

        if (is_a($this->search_set, 'rcube_result_multifolder')) {
            $this->set_threading(false);
        }
    }
public function set_search_set ( $ set ) { $ set = ( array ) $ set ; $ this -> search_string = $ set [ 0 ] ; $ this -> search_set = $ set [ 1 ] ; $ this -> search_charset = $ set [ 2 ] ; $ this -> search_sort_field = $ set [ 3 ] ; $ this -> search_sorted = $ set [ 4 ] ; $ this -> search_threads = is_a ( $ this -> search_set , 'rcube_result_thread' ) ; if ( is_a ( $ this -> search_set , 'rcube_result_multifolder' ) ) { $ this -> set_threading ( false ) ; } }
Save a search result for future message listing methods

@param array $set Search set, result from rcube_imap::get_search_set():
0 - searching criteria, string
1 - search result, rcube_result_index|rcube_result_thread
2 - searching character set, string
3 - sorting field, string
4 - true if sorted, bool
Save a search result for future message listing methods