original_string: public function searchAdvanced()
      {
          if (!$this->nextPage) {
              Yii::$app->session->set('forum-search', [
                  'query' => $this->query,
                  'match' => $this->match,
                  'author' => $this->author,
                  'dateFrom' => $this->dateFrom,
                  'dateFromStamp' => $this->dateFromStamp,
                  'dateTo' => $this->dateTo,
                  'dateToStamp' => $this->dateToStamp,
                  'forums' => $this->forums,
                  'type' => $this->type,
                  'display' => $this->display
              ]);
          }
          if ($this->type == 'topics') {
              return $this->searchTopics();
          }
          return $this->searchPosts();
      }
code: public function searchAdvanced()
      {
          if (!$this->nextPage) {
              Yii::$app->session->set('forum-search', [
                  'query' => $this->query,
                  'match' => $this->match,
                  'author' => $this->author,
                  'dateFrom' => $this->dateFrom,
                  'dateFromStamp' => $this->dateFromStamp,
                  'dateTo' => $this->dateTo,
                  'dateToStamp' => $this->dateToStamp,
                  'forums' => $this->forums,
                  'type' => $this->type,
                  'display' => $this->display
              ]);
          }
          if ($this->type == 'topics') {
              return $this->searchTopics();
          }
          return $this->searchPosts();
      }
code_tokens: public function searchAdvanced ( ) { if ( ! $ this -> nextPage ) { Yii :: $ app -> session -> set ( 'forum-search' , [ 'query' => $ this -> query , 'match' => $ this -> match , 'author' => $ this -> author , 'dateFrom' => $ this -> dateFrom , 'dateFromStamp' => $ this -> dateFromStamp , 'dateTo' => $ this -> dateTo , 'dateToStamp' => $ this -> dateToStamp , 'forums' => $ this -> forums , 'type' => $ this -> type , 'display' => $ this -> display ] ) ; } if ( $ this -> type == 'topics' ) { return $ this -> searchTopics ( ) ; } return $ this -> searchPosts ( ) ; }
docstring: Advanced search.
  @return ActiveDataProvider
docstring_tokens: Advanced search .