original_string: public function view_summary(stdClass $submission, & $showviewlink) {
          $count = $this->count_files($submission->id, ASSIGNSUBMISSION_FILE_FILEAREA);
  
          // Show we show a link to view all files for this plugin?
          $showviewlink = $count > ASSIGNSUBMISSION_FILE_MAXSUMMARYFILES;
          if ($count <= ASSIGNSUBMISSION_FILE_MAXSUMMARYFILES) {
              return $this->assignment->render_area_files('assignsubmission_file',
                                                          ASSIGNSUBMISSION_FILE_FILEAREA,
                                                          $submission->id);
          } else {
              return get_string('countfiles', 'assignsubmission_file', $count);
          }
      }
code: public function view_summary(stdClass $submission, & $showviewlink) {
          $count = $this->count_files($submission->id, ASSIGNSUBMISSION_FILE_FILEAREA);
  
          // Show we show a link to view all files for this plugin?
          $showviewlink = $count > ASSIGNSUBMISSION_FILE_MAXSUMMARYFILES;
          if ($count <= ASSIGNSUBMISSION_FILE_MAXSUMMARYFILES) {
              return $this->assignment->render_area_files('assignsubmission_file',
                                                          ASSIGNSUBMISSION_FILE_FILEAREA,
                                                          $submission->id);
          } else {
              return get_string('countfiles', 'assignsubmission_file', $count);
          }
      }
code_tokens: public function view_summary ( stdClass $ submission , & $ showviewlink ) { $ count = $ this -> count_files ( $ submission -> id , ASSIGNSUBMISSION_FILE_FILEAREA ) ; // Show we show a link to view all files for this plugin? $ showviewlink = $ count > ASSIGNSUBMISSION_FILE_MAXSUMMARYFILES ; if ( $ count <= ASSIGNSUBMISSION_FILE_MAXSUMMARYFILES ) { return $ this -> assignment -> render_area_files ( 'assignsubmission_file' , ASSIGNSUBMISSION_FILE_FILEAREA , $ submission -> id ) ; } else { return get_string ( 'countfiles' , 'assignsubmission_file' , $ count ) ; } }
docstring: Display the list of files  in the submission status table
  
  @param stdClass $submission
  @param bool $showviewlink Set this to true if the list of files is long
  @return string
docstring_tokens: Display the list of files in the submission status table