public function setParams()
    {
        if (Yii::$app->request->get('page') && Yii::$app->session->has('forum-search')) {
            $session = Yii::$app->session->get('forum-search');
            $this->query = $session['query'];
            $this->match = $session['match'];
            $this->author = $session['author'];
            $this->dateFrom = $session['dateFrom'];
            $this->dateFromStamp = $session['dateFromStamp'];
            $this->dateTo = $session['dateTo'];
            $this->dateToStamp = $session['dateToStamp'];
            $this->forums = $session['forums'];
            $this->type = $session['type'];
            $this->display = $session['display'];
            $this->nextPage = true;
        } else {
            $this->match = 'all';
            $this->type = 'posts';
            $this->display = 'topics';
            $this->nextPage = false;
        }
    }
public function setParams()
    {
        if (Yii::$app->request->get('page') && Yii::$app->session->has('forum-search')) {
            $session = Yii::$app->session->get('forum-search');
            $this->query = $session['query'];
            $this->match = $session['match'];
            $this->author = $session['author'];
            $this->dateFrom = $session['dateFrom'];
            $this->dateFromStamp = $session['dateFromStamp'];
            $this->dateTo = $session['dateTo'];
            $this->dateToStamp = $session['dateToStamp'];
            $this->forums = $session['forums'];
            $this->type = $session['type'];
            $this->display = $session['display'];
            $this->nextPage = true;
        } else {
            $this->match = 'all';
            $this->type = 'posts';
            $this->display = 'topics';
            $this->nextPage = false;
        }
    }
public function setParams ( ) { if ( Yii :: $ app -> request -> get ( 'page' ) && Yii :: $ app -> session -> has ( 'forum-search' ) ) { $ session = Yii :: $ app -> session -> get ( 'forum-search' ) ; $ this -> query = $ session [ 'query' ] ; $ this -> match = $ session [ 'match' ] ; $ this -> author = $ session [ 'author' ] ; $ this -> dateFrom = $ session [ 'dateFrom' ] ; $ this -> dateFromStamp = $ session [ 'dateFromStamp' ] ; $ this -> dateTo = $ session [ 'dateTo' ] ; $ this -> dateToStamp = $ session [ 'dateToStamp' ] ; $ this -> forums = $ session [ 'forums' ] ; $ this -> type = $ session [ 'type' ] ; $ this -> display = $ session [ 'display' ] ; $ this -> nextPage = true ; } else { $ this -> match = 'all' ; $ this -> type = 'posts' ; $ this -> display = 'topics' ; $ this -> nextPage = false ; } }
Sets search parameters based on the session.
@since 0.8
Sets search parameters based on the session .