original_string: protected function search_form($query = '', $tagcollid = 0) {
          $searchurl = new moodle_url('/tag/search.php');
          $output = '<form action="' . $searchurl . '">';
          $output .= '<label class="accesshide" for="searchform_query">' . get_string('searchtags', 'tag') . '</label>';
          $output .= '<input id="searchform_query" name="query" type="text" size="40" value="' . s($query) . '" />';
          $tagcolls = core_tag_collection::get_collections_menu(false, true, get_string('inalltagcoll', 'tag'));
          if (count($tagcolls) > 1) {
              $output .= '<label class="accesshide" for="searchform_tc">' . get_string('selectcoll', 'tag') . '</label>';
              $output .= html_writer::select($tagcolls, 'tc', $tagcollid, null, array('id' => 'searchform_tc'));
          }
          $output .= '<input name="go" type="submit" size="40" value="' . s(get_string('search', 'tag')) . '" />';
          $output .= '</form>';
  
          return $output;
      }
code: protected function search_form($query = '', $tagcollid = 0) {
          $searchurl = new moodle_url('/tag/search.php');
          $output = '<form action="' . $searchurl . '">';
          $output .= '<label class="accesshide" for="searchform_query">' . get_string('searchtags', 'tag') . '</label>';
          $output .= '<input id="searchform_query" name="query" type="text" size="40" value="' . s($query) . '" />';
          $tagcolls = core_tag_collection::get_collections_menu(false, true, get_string('inalltagcoll', 'tag'));
          if (count($tagcolls) > 1) {
              $output .= '<label class="accesshide" for="searchform_tc">' . get_string('selectcoll', 'tag') . '</label>';
              $output .= html_writer::select($tagcolls, 'tc', $tagcollid, null, array('id' => 'searchform_tc'));
          }
          $output .= '<input name="go" type="submit" size="40" value="' . s(get_string('search', 'tag')) . '" />';
          $output .= '</form>';
  
          return $output;
      }
code_tokens: protected function search_form ( $ query = '' , $ tagcollid = 0 ) { $ searchurl = new moodle_url ( '/tag/search.php' ) ; $ output = '<form action="' . $ searchurl . '">' ; $ output .= '<label class="accesshide" for="searchform_query">' . get_string ( 'searchtags' , 'tag' ) . '</label>' ; $ output .= '<input id="searchform_query" name="query" type="text" size="40" value="' . s ( $ query ) . '" />' ; $ tagcolls = core_tag_collection :: get_collections_menu ( false , true , get_string ( 'inalltagcoll' , 'tag' ) ) ; if ( count ( $ tagcolls ) > 1 ) { $ output .= '<label class="accesshide" for="searchform_tc">' . get_string ( 'selectcoll' , 'tag' ) . '</label>' ; $ output .= html_writer :: select ( $ tagcolls , 'tc' , $ tagcollid , null , array ( 'id' => 'searchform_tc' ) ) ; } $ output .= '<input name="go" type="submit" size="40" value="' . s ( get_string ( 'search' , 'tag' ) ) . '" />' ; $ output .= '</form>' ; return $ output ; }
docstring: Prints the tag search box
  
  @param string $query last search string
  @param int $tagcollid last selected tag collection id
  @return string
docstring_tokens: Prints the tag search box