original_string: public function tag_search_page($query = '', $tagcollid = 0) {
          $rv = $this->output->heading(get_string('searchtags', 'tag'), 2);
  
          $searchbox = $this->search_form($query, $tagcollid);
          $rv .= html_writer::div($searchbox, '', array('id' => 'tag-search-box'));
  
          $tagcloud = core_tag_collection::get_tag_cloud($tagcollid, false, 150, 'name', $query);
          $searchresults = '';
          if ($tagcloud->get_count()) {
              $searchresults = $this->output->render_from_template('core_tag/tagcloud',
                      $tagcloud->export_for_template($this->output));
              $rv .= html_writer::div($searchresults, '', array('id' => 'tag-search-results'));
          } else if (strval($query) !== '') {
              $rv .= '<div class="tag-search-empty">' . get_string('notagsfound', 'tag', s($query)) . '</div>';
          }
  
          return $rv;
      }
code: public function tag_search_page($query = '', $tagcollid = 0) {
          $rv = $this->output->heading(get_string('searchtags', 'tag'), 2);
  
          $searchbox = $this->search_form($query, $tagcollid);
          $rv .= html_writer::div($searchbox, '', array('id' => 'tag-search-box'));
  
          $tagcloud = core_tag_collection::get_tag_cloud($tagcollid, false, 150, 'name', $query);
          $searchresults = '';
          if ($tagcloud->get_count()) {
              $searchresults = $this->output->render_from_template('core_tag/tagcloud',
                      $tagcloud->export_for_template($this->output));
              $rv .= html_writer::div($searchresults, '', array('id' => 'tag-search-results'));
          } else if (strval($query) !== '') {
              $rv .= '<div class="tag-search-empty">' . get_string('notagsfound', 'tag', s($query)) . '</div>';
          }
  
          return $rv;
      }
code_tokens: public function tag_search_page ( $ query = '' , $ tagcollid = 0 ) { $ rv = $ this -> output -> heading ( get_string ( 'searchtags' , 'tag' ) , 2 ) ; $ searchbox = $ this -> search_form ( $ query , $ tagcollid ) ; $ rv .= html_writer :: div ( $ searchbox , '' , array ( 'id' => 'tag-search-box' ) ) ; $ tagcloud = core_tag_collection :: get_tag_cloud ( $ tagcollid , false , 150 , 'name' , $ query ) ; $ searchresults = '' ; if ( $ tagcloud -> get_count ( ) ) { $ searchresults = $ this -> output -> render_from_template ( 'core_tag/tagcloud' , $ tagcloud -> export_for_template ( $ this -> output ) ) ; $ rv .= html_writer :: div ( $ searchresults , '' , array ( 'id' => 'tag-search-results' ) ) ; } else if ( strval ( $ query ) !== '' ) { $ rv .= '<div class="tag-search-empty">' . get_string ( 'notagsfound' , 'tag' , s ( $ query ) ) . '</div>' ; } return $ rv ; }
docstring: Renders the tag search page
  
  @param string $query
  @param int $tagcollid
  @return string
docstring_tokens: Renders the tag search page