original_string: public function reject($notice) {
          global $USER, $DB;
          $user = $DB->get_record('user', array('id' => $this->properties->requester), '*', MUST_EXIST);
          $this->notify($user, $USER, 'courserequestrejected', get_string('courserejectsubject'), get_string('courserejectemail', 'moodle', $notice));
          $this->delete();
      }
code: public function reject($notice) {
          global $USER, $DB;
          $user = $DB->get_record('user', array('id' => $this->properties->requester), '*', MUST_EXIST);
          $this->notify($user, $USER, 'courserequestrejected', get_string('courserejectsubject'), get_string('courserejectemail', 'moodle', $notice));
          $this->delete();
      }
code_tokens: public function reject ( $ notice ) { global $ USER , $ DB ; $ user = $ DB -> get_record ( 'user' , array ( 'id' => $ this -> properties -> requester ) , '*' , MUST_EXIST ) ; $ this -> notify ( $ user , $ USER , 'courserequestrejected' , get_string ( 'courserejectsubject' ) , get_string ( 'courserejectemail' , 'moodle' , $ notice ) ) ; $ this -> delete ( ) ; }
docstring: Reject a course request
  
  This function rejects a course request, emailing the requesting user the
  provided notice and then removing the request from the database
  
  @param string $notice The message to display to the user
docstring_tokens: Reject a course request