original_string: protected function export_assessment(workshop_assessment $assessment) {
  
          $output = '';
  
          if (empty($assessment->title)) {
              $title = get_string('assessment', 'workshop');
          } else {
              $title = s($assessment->title);
          }
  
          $output .= html_writer::tag('h3', $title);
  
          if ($assessment->reviewer) {
              $output .= html_writer::div(get_string('byfullnamewithoutlink', 'mod_workshop', fullname($assessment->reviewer)));
              $output .= html_writer::empty_tag('br');
          }
  
          if ($this->workshop->overallfeedbackmode) {
              if ($assessment->feedbackauthorattachment or trim($assessment->feedbackauthor) !== '') {
                  $output .= html_writer::tag('h3', get_string('overallfeedback', 'mod_workshop'));
                  $content = $this->format_exported_text($assessment->feedbackauthor, $assessment->feedbackauthorformat);
                  $content = portfolio_rewrite_pluginfile_urls($content, $this->workshop->context->id, 'mod_workshop',
                      'overallfeedback_content', $assessment->id , $this->exporter->get('format'));
                  $output .= $content;
  
                  $output .= $this->export_files_list('overallfeedback_attachment');
              }
          }
  
          if ($assessment->form) {
              $output .= $assessment->form->render();
          }
  
          return $output;
      }
code: protected function export_assessment(workshop_assessment $assessment) {
  
          $output = '';
  
          if (empty($assessment->title)) {
              $title = get_string('assessment', 'workshop');
          } else {
              $title = s($assessment->title);
          }
  
          $output .= html_writer::tag('h3', $title);
  
          if ($assessment->reviewer) {
              $output .= html_writer::div(get_string('byfullnamewithoutlink', 'mod_workshop', fullname($assessment->reviewer)));
              $output .= html_writer::empty_tag('br');
          }
  
          if ($this->workshop->overallfeedbackmode) {
              if ($assessment->feedbackauthorattachment or trim($assessment->feedbackauthor) !== '') {
                  $output .= html_writer::tag('h3', get_string('overallfeedback', 'mod_workshop'));
                  $content = $this->format_exported_text($assessment->feedbackauthor, $assessment->feedbackauthorformat);
                  $content = portfolio_rewrite_pluginfile_urls($content, $this->workshop->context->id, 'mod_workshop',
                      'overallfeedback_content', $assessment->id , $this->exporter->get('format'));
                  $output .= $content;
  
                  $output .= $this->export_files_list('overallfeedback_attachment');
              }
          }
  
          if ($assessment->form) {
              $output .= $assessment->form->render();
          }
  
          return $output;
      }
code_tokens: protected function export_assessment ( workshop_assessment $ assessment ) { $ output = '' ; if ( empty ( $ assessment -> title ) ) { $ title = get_string ( 'assessment' , 'workshop' ) ; } else { $ title = s ( $ assessment -> title ) ; } $ output .= html_writer :: tag ( 'h3' , $ title ) ; if ( $ assessment -> reviewer ) { $ output .= html_writer :: div ( get_string ( 'byfullnamewithoutlink' , 'mod_workshop' , fullname ( $ assessment -> reviewer ) ) ) ; $ output .= html_writer :: empty_tag ( 'br' ) ; } if ( $ this -> workshop -> overallfeedbackmode ) { if ( $ assessment -> feedbackauthorattachment or trim ( $ assessment -> feedbackauthor ) !== '' ) { $ output .= html_writer :: tag ( 'h3' , get_string ( 'overallfeedback' , 'mod_workshop' ) ) ; $ content = $ this -> format_exported_text ( $ assessment -> feedbackauthor , $ assessment -> feedbackauthorformat ) ; $ content = portfolio_rewrite_pluginfile_urls ( $ content , $ this -> workshop -> context -> id , 'mod_workshop' , 'overallfeedback_content' , $ assessment -> id , $ this -> exporter -> get ( 'format' ) ) ; $ output .= $ content ; $ output .= $ this -> export_files_list ( 'overallfeedback_attachment' ) ; } } if ( $ assessment -> form ) { $ output .= $ assessment -> form -> render ( ) ; } return $ output ; }
docstring: Render the content of an assessment.
  
  @param workshop_assessment $assessment
  @return string HTML
docstring_tokens: Render the content of an assessment .