original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: Sets search parameters based on the session.
  @since 0.8
docstring_tokens: Sets search parameters based on the session .