original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Format a notification for plain text.
  
  @param string $messagetype
  @param stdClass $info
  @param stdClass $course
  @param stdClass $context
  @param string $modulename
  @param string $assignmentname
docstring_tokens: Format a notification for plain text .