0

生徒が小テストを終えたときに受け取るメールを変更しようとしています。メールにいくつかの情報を追加したい (各回答のフィードバック、スコアなど) が、moodle のドキュメントでは、追加できる情報はほとんどないことを読みました: ($a 文字列): https: //docs.moodle.org/20/en/Quiz_submission_email_notification

追加できる情報があるかどうか知っていますか? または、これらの情報を手動で追加する方法を説明していただけますか。

4

1 に答える 1

1

カスタマイズは、言語モジュールを介して行うことができます。既に解決済みであると確信しています。

$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 を渡すことができます。これにより、レビューが利用できない場合に、ユーザーがリンクをクリックしたときに、混乱を招く可能性のある電子メールに空白のステートメントを含めるのではなく、ユーザーに通知することが保証されます。

于 2015-12-02T12:48:17.023 に答える