我试图修改学生在完成测验时收到的电子邮件。 我想向邮件中添加一些信息(比如每个答案的反馈,分数ecc),但是在moodle文档中,我读到只有少数信息可以添加:($ a字符串):https://docs.moodle.org/20/en/Quiz_submission_email_notificationMoodle - 自定义电子邮件通知?
您是否知道我是否可以添加更多信息?或者你能解释我如何手动添加这些信息,谢谢。
我试图修改学生在完成测验时收到的电子邮件。 我想向邮件中添加一些信息(比如每个答案的反馈,分数ecc),但是在moodle文档中,我读到只有少数信息可以添加:($ a字符串):https://docs.moodle.org/20/en/Quiz_submission_email_notificationMoodle - 自定义电子邮件通知?
您是否知道我是否可以添加更多信息?或者你能解释我如何手动添加这些信息,谢谢。
定制可以通过语言模块完成,因为我相信你已经制定出来了。
$ a只是一个可变的载体。为了访问所有信息,你需要添加一个参数,像这样: $ A-> ParameterToPass
可传递的参数有:
$a->coursename
The name of the course
$a->courseshortname
The shortname of the course
$a->quizname
The name of the quiz
$a->quizreporturl
The URL of the results overview for this quiz (.../mod/quiz/report.php?q=quizid)
$a->quizreportlink
The URL of the results overview URL and quiz name as a HTML link
$a->quizreviewurl
The URL of the review page for this attempt (.../mod/quiz/review.php?attempt=attemptid)
$a->quizreviewlink
The attempt review URL and quiz name as a HTML link
$a->quizurl
The URL of the main page of the quiz (.../mod/quiz/view.php?q=quizid)
$a->quizlink
The URL of the quiz and the quiz name as a HTML link
$a->attemptsubmissiontime
The time the attempt was submitted, formatted using userdate().
$a->timetaken
How long the quiz attempt lasted.
$a->studentname
The name of the person who submitted the quiz.
$a->studentidnumber
The idnumber of the person who submitted the quiz.
$a->studentusername
The username of the person who submitted the quiz.
$a->username
The name of the user the email is being sent to.
$a->useridnumber
The idnumber of the user the email is being sent to.
$a->userusername
The username of the user the email is being sent to.
(来自https://docs.moodle.org/30/en/Quiz_submission_email_notification两者)
这是对于Moodle 3.0 - 供将来参考,如果您让我们知道您正在使用哪种Moodle版本,则可以获得更准确的响应。
你不能将比分/结果作为参数,因为不是在Moodle的测验所有审核模式使用户能够查看分数的原因 - 特别是如果启用了手动标记(例如以论文形式的问题存在)。相反,您可以将URL传递给审阅。这确保了如果评论不可用,则当用户点击该链接时通知用户,而不是在电子邮件中具有空白的声明,这可能会令人困惑。
我使用的是moodle 2.9而不是3.0,但是我遇到了同样的$ a参数。将邮件中的测验结果打印到网址的决定不是我的eheh。所以不可能将答案的反馈信息添加到邮件中?如果这是不可能的,我必须尝试使用网址... – Removed