protected static function format_notification_message_text($messagetype,
                                                             $info,
                                                             $course,
                                                             $context,
                                                             $modulename,
                                                             $assignmentname) {
        $formatparams = array('context' => $context->get_course_context());
        $posttext  = format_string($course->shortname, true, $formatparams) .
                     ' -> ' .
                     $modulename .
                     ' -> ' .
                     format_string($assignmentname, true, $formatparams) . "\n";
        $posttext .= '---------------------------------------------------------------------' . "\n";
        $posttext .= get_string($messagetype . 'text', 'assign', $info)."\n";
        $posttext .= "\n---------------------------------------------------------------------\n";
        return $posttext;
    }
protected static function format_notification_message_text($messagetype,
                                                             $info,
                                                             $course,
                                                             $context,
                                                             $modulename,
                                                             $assignmentname) {
        $formatparams = array('context' => $context->get_course_context());
        $posttext  = format_string($course->shortname, true, $formatparams) .
                     ' -> ' .
                     $modulename .
                     ' -> ' .
                     format_string($assignmentname, true, $formatparams) . "\n";
        $posttext .= '---------------------------------------------------------------------' . "\n";
        $posttext .= get_string($messagetype . 'text', 'assign', $info)."\n";
        $posttext .= "\n---------------------------------------------------------------------\n";
        return $posttext;
    }
protected static function format_notification_message_text ( $ messagetype , $ info , $ course , $ context , $ modulename , $ assignmentname ) { $ formatparams = array ( 'context' => $ context -> get_course_context ( ) ) ; $ posttext = format_string ( $ course -> shortname , true , $ formatparams ) . ' -> ' . $ modulename . ' -> ' . format_string ( $ assignmentname , true , $ formatparams ) . "\n" ; $ posttext .= '---------------------------------------------------------------------' . "\n" ; $ posttext .= get_string ( $ messagetype . 'text' , 'assign' , $ info ) . "\n" ; $ posttext .= "\n---------------------------------------------------------------------\n" ; return $ posttext ; }
Format a notification for plain text.

@param string $messagetype
@param stdClass $info
@param stdClass $course
@param stdClass $context
@param string $modulename
@param string $assignmentname
Format a notification for plain text .