original_string: protected function delete() {
          global $DB;
          $this->id = $DB->get_field_select('course', 'id', 'shortname = :shortname',
              array('shortname' => $this->shortname), MUST_EXIST);
          return delete_course($this->id, false);
      }
code: protected function delete() {
          global $DB;
          $this->id = $DB->get_field_select('course', 'id', 'shortname = :shortname',
              array('shortname' => $this->shortname), MUST_EXIST);
          return delete_course($this->id, false);
      }
code_tokens: protected function delete ( ) { global $ DB ; $ this -> id = $ DB -> get_field_select ( 'course' , 'id' , 'shortname = :shortname' , array ( 'shortname' => $ this -> shortname ) , MUST_EXIST ) ; return delete_course ( $ this -> id , false ) ; }
docstring: Delete the current course.
  
  @return bool
docstring_tokens: Delete the current course .