public function get_overall_feedback_content() {

        if ($this->workshop->overallfeedbackmode == 0) {
            return false;
        }

        if (trim($this->feedbackauthor) === '') {
            return null;
        }

        $content = file_rewrite_pluginfile_urls($this->feedbackauthor, 'pluginfile.php', $this->workshop->context->id,
            'mod_workshop', 'overallfeedback_content', $this->id);
        $content = format_text($content, $this->feedbackauthorformat,
            array('overflowdiv' => true, 'context' => $this->workshop->context));

        return $content;
    }
public function get_overall_feedback_content() {

        if ($this->workshop->overallfeedbackmode == 0) {
            return false;
        }

        if (trim($this->feedbackauthor) === '') {
            return null;
        }

        $content = file_rewrite_pluginfile_urls($this->feedbackauthor, 'pluginfile.php', $this->workshop->context->id,
            'mod_workshop', 'overallfeedback_content', $this->id);
        $content = format_text($content, $this->feedbackauthorformat,
            array('overflowdiv' => true, 'context' => $this->workshop->context));

        return $content;
    }
public function get_overall_feedback_content ( ) { if ( $ this -> workshop -> overallfeedbackmode == 0 ) { return false ; } if ( trim ( $ this -> feedbackauthor ) === '' ) { return null ; } $ content = file_rewrite_pluginfile_urls ( $ this -> feedbackauthor , 'pluginfile.php' , $ this -> workshop -> context -> id , 'mod_workshop' , 'overallfeedback_content' , $ this -> id ) ; $ content = format_text ( $ content , $ this -> feedbackauthorformat , array ( 'overflowdiv' => true , 'context' => $ this -> workshop -> context ) ) ; return $ content ; }
Format the overall feedback text content

False is returned if the overall feedback feature is disabled. Null is returned
if the overall feedback content has not been found. Otherwise, string with
formatted feedback text is returned.

@return string|bool|null
Format the overall feedback text content