original_string: public function render_assign_gradingmessage(assign_gradingmessage $result) {
          $urlparams = array('id' => $result->coursemoduleid, 'action'=>'grading');
          if (!empty($result->page)) {
              $urlparams['page'] = $result->page;
          }
          $url = new moodle_url('/mod/assign/view.php', $urlparams);
          $classes = $result->gradingerror ? 'notifyproblem' : 'notifysuccess';
  
          $o = '';
          $o .= $this->output->heading($result->heading, 4);
          $o .= $this->output->notification($result->message, $classes);
          $o .= $this->output->continue_button($url);
          return $o;
      }
code: public function render_assign_gradingmessage(assign_gradingmessage $result) {
          $urlparams = array('id' => $result->coursemoduleid, 'action'=>'grading');
          if (!empty($result->page)) {
              $urlparams['page'] = $result->page;
          }
          $url = new moodle_url('/mod/assign/view.php', $urlparams);
          $classes = $result->gradingerror ? 'notifyproblem' : 'notifysuccess';
  
          $o = '';
          $o .= $this->output->heading($result->heading, 4);
          $o .= $this->output->notification($result->message, $classes);
          $o .= $this->output->continue_button($url);
          return $o;
      }
code_tokens: public function render_assign_gradingmessage ( assign_gradingmessage $ result ) { $ urlparams = array ( 'id' => $ result -> coursemoduleid , 'action' => 'grading' ) ; if ( ! empty ( $ result -> page ) ) { $ urlparams [ 'page' ] = $ result -> page ; } $ url = new moodle_url ( '/mod/assign/view.php' , $ urlparams ) ; $ classes = $ result -> gradingerror ? 'notifyproblem' : 'notifysuccess' ; $ o = '' ; $ o .= $ this -> output -> heading ( $ result -> heading , 4 ) ; $ o .= $ this -> output -> notification ( $ result -> message , $ classes ) ; $ o .= $ this -> output -> continue_button ( $ url ) ; return $ o ; }
docstring: Render a grading message notification
  @param assign_gradingmessage $result The result to render
  @return string
docstring_tokens: Render a grading message notification