original_string: public function view_student_summary($user, $showlinks) {
  
          $o = '';
  
          if ($this->can_view_submission($user->id)) {
  
              if (has_capability('mod/assign:submit', $this->get_context(), $user, false)) {
                  $submissionstatus = $this->get_assign_submission_status_renderable($user, $showlinks);
                  $o .= $this->get_renderer()->render($submissionstatus);
              }
  
              // If there is a visible grade, show the feedback.
              $feedbackstatus = $this->get_assign_feedback_status_renderable($user);
              if ($feedbackstatus) {
                  $o .= $this->get_renderer()->render($feedbackstatus);
              }
  
              // If there is more than one submission, show the history.
              $history = $this->get_assign_attempt_history_renderable($user);
              if (count($history->submissions) > 1) {
                  $o .= $this->get_renderer()->render($history);
              }
          }
          return $o;
      }
code: public function view_student_summary($user, $showlinks) {
  
          $o = '';
  
          if ($this->can_view_submission($user->id)) {
  
              if (has_capability('mod/assign:submit', $this->get_context(), $user, false)) {
                  $submissionstatus = $this->get_assign_submission_status_renderable($user, $showlinks);
                  $o .= $this->get_renderer()->render($submissionstatus);
              }
  
              // If there is a visible grade, show the feedback.
              $feedbackstatus = $this->get_assign_feedback_status_renderable($user);
              if ($feedbackstatus) {
                  $o .= $this->get_renderer()->render($feedbackstatus);
              }
  
              // If there is more than one submission, show the history.
              $history = $this->get_assign_attempt_history_renderable($user);
              if (count($history->submissions) > 1) {
                  $o .= $this->get_renderer()->render($history);
              }
          }
          return $o;
      }
code_tokens: public function view_student_summary ( $ user , $ showlinks ) { $ o = '' ; if ( $ this -> can_view_submission ( $ user -> id ) ) { if ( has_capability ( 'mod/assign:submit' , $ this -> get_context ( ) , $ user , false ) ) { $ submissionstatus = $ this -> get_assign_submission_status_renderable ( $ user , $ showlinks ) ; $ o .= $ this -> get_renderer ( ) -> render ( $ submissionstatus ) ; } // If there is a visible grade, show the feedback. $ feedbackstatus = $ this -> get_assign_feedback_status_renderable ( $ user ) ; if ( $ feedbackstatus ) { $ o .= $ this -> get_renderer ( ) -> render ( $ feedbackstatus ) ; } // If there is more than one submission, show the history. $ history = $ this -> get_assign_attempt_history_renderable ( $ user ) ; if ( count ( $ history -> submissions ) > 1 ) { $ o .= $ this -> get_renderer ( ) -> render ( $ history ) ; } } return $ o ; }
docstring: Print 2 tables of information with no action links -
  the submission summary and the grading summary.
  
  @param stdClass $user the user to print the report for
  @param bool $showlinks - Return plain text or links to the profile
  @return string - the html summary
docstring_tokens: Print 2 tables of information with no action links - the submission summary and the grading summary .