original_string: protected function display_category_form($contexts, $pageurl, $current) {
          global $OUTPUT;
  
          debugging('display_category_form() is deprecated, please use ' .
                  '\core_question\bank\search\condition instead.', DEBUG_DEVELOPER);
          // Get all the existing categories now.
          echo '<div class="choosecategory">';
          $catmenu = question_category_options($contexts, false, 0, true);
  
          $select = new \single_select($this->baseurl, 'category', $catmenu, $current, null, 'catmenu');
          $select->set_label(get_string('selectacategory', 'question'));
          echo $OUTPUT->render($select);
          echo "</div>\n";
      }
code: protected function display_category_form($contexts, $pageurl, $current) {
          global $OUTPUT;
  
          debugging('display_category_form() is deprecated, please use ' .
                  '\core_question\bank\search\condition instead.', DEBUG_DEVELOPER);
          // Get all the existing categories now.
          echo '<div class="choosecategory">';
          $catmenu = question_category_options($contexts, false, 0, true);
  
          $select = new \single_select($this->baseurl, 'category', $catmenu, $current, null, 'catmenu');
          $select->set_label(get_string('selectacategory', 'question'));
          echo $OUTPUT->render($select);
          echo "</div>\n";
      }
code_tokens: protected function display_category_form ( $ contexts , $ pageurl , $ current ) { global $ OUTPUT ; debugging ( 'display_category_form() is deprecated, please use ' . '\core_question\bank\search\condition instead.' , DEBUG_DEVELOPER ) ; // Get all the existing categories now. echo '<div class="choosecategory">' ; $ catmenu = question_category_options ( $ contexts , false , 0 , true ) ; $ select = new \ single_select ( $ this -> baseurl , 'category' , $ catmenu , $ current , null , 'catmenu' ) ; $ select -> set_label ( get_string ( 'selectacategory' , 'question' ) ) ; echo $ OUTPUT -> render ( $ select ) ; echo "</div>\n" ; }
docstring: Prints a form to choose categories
  @deprecated since Moodle 2.7 MDL-40313.
  @see \core_question\bank\search\condition
  @todo MDL-41978 This will be deleted in Moodle 2.8
docstring_tokens: Prints a form to choose categories