original_string: public function set_grading_evaluation_method($method) {
          global $DB;
  
          $evaluationlib = __DIR__ . '/eval/' . $method . '/lib.php';
  
          if (is_readable($evaluationlib)) {
              $this->evaluationinstance = null;
              $this->evaluation = $method;
              $DB->set_field('workshop', 'evaluation', $method, array('id' => $this->id));
              return true;
          }
  
          throw new coding_exception('Attempt to set a non-existing evaluation method.');
      }
code: public function set_grading_evaluation_method($method) {
          global $DB;
  
          $evaluationlib = __DIR__ . '/eval/' . $method . '/lib.php';
  
          if (is_readable($evaluationlib)) {
              $this->evaluationinstance = null;
              $this->evaluation = $method;
              $DB->set_field('workshop', 'evaluation', $method, array('id' => $this->id));
              return true;
          }
  
          throw new coding_exception('Attempt to set a non-existing evaluation method.');
      }
code_tokens: public function set_grading_evaluation_method ( $ method ) { global $ DB ; $ evaluationlib = __DIR__ . '/eval/' . $ method . '/lib.php' ; if ( is_readable ( $ evaluationlib ) ) { $ this -> evaluationinstance = null ; $ this -> evaluation = $ method ; $ DB -> set_field ( 'workshop' , 'evaluation' , $ method , array ( 'id' => $ this -> id ) ) ; return true ; } throw new coding_exception ( 'Attempt to set a non-existing evaluation method.' ) ; }
docstring: Sets the current evaluation method to the given plugin.
  
  @param string $method the name of the workshopeval subplugin
  @return bool true if successfully set
  @throws coding_exception if attempting to set a non-installed evaluation method
docstring_tokens: Sets the current evaluation method to the given plugin .