original_string: public function management_method_selector(grading_manager $manager, moodle_url $targeturl) {
  
          $method = $manager->get_active_method();
          $methods = $manager->get_available_methods(false);
          $methods['none'] = get_string('gradingmethodnone', 'core_grading');
          $selector = new single_select(new moodle_url($targeturl, array('sesskey' => sesskey())),
              'setmethod', $methods, empty($method) ? 'none' : $method, null, 'activemethodselector');
          $selector->set_label(get_string('changeactivemethod', 'core_grading'));
          $selector->set_help_icon('gradingmethod', 'core_grading');
  
          return $this->output->render($selector);
      }
code: public function management_method_selector(grading_manager $manager, moodle_url $targeturl) {
  
          $method = $manager->get_active_method();
          $methods = $manager->get_available_methods(false);
          $methods['none'] = get_string('gradingmethodnone', 'core_grading');
          $selector = new single_select(new moodle_url($targeturl, array('sesskey' => sesskey())),
              'setmethod', $methods, empty($method) ? 'none' : $method, null, 'activemethodselector');
          $selector->set_label(get_string('changeactivemethod', 'core_grading'));
          $selector->set_help_icon('gradingmethod', 'core_grading');
  
          return $this->output->render($selector);
      }
code_tokens: public function management_method_selector ( grading_manager $ manager , moodle_url $ targeturl ) { $ method = $ manager -> get_active_method ( ) ; $ methods = $ manager -> get_available_methods ( false ) ; $ methods [ 'none' ] = get_string ( 'gradingmethodnone' , 'core_grading' ) ; $ selector = new single_select ( new moodle_url ( $ targeturl , array ( 'sesskey' => sesskey ( ) ) ) , 'setmethod' , $ methods , empty ( $ method ) ? 'none' : $ method , null , 'activemethodselector' ) ; $ selector -> set_label ( get_string ( 'changeactivemethod' , 'core_grading' ) ) ; $ selector -> set_help_icon ( 'gradingmethod' , 'core_grading' ) ; return $ this -> output -> render ( $ selector ) ; }
docstring: Renders the active method selector at the grading method management screen
  
  @param grading_manager $manager
  @param moodle_url $targeturl
  @return string
docstring_tokens: Renders the active method selector at the grading method management screen