mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Added a few more comments
This commit is contained in:
parent
1f11c89751
commit
1670305df4
@ -743,7 +743,16 @@ function forum_cron() {
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO document
|
||||
* Builds and returns the body of the email notification in plain text.
|
||||
*
|
||||
* @param object $course
|
||||
* @param object $forum
|
||||
* @param object $discussion
|
||||
* @param object $post
|
||||
* @param object $userfrom
|
||||
* @param object $userto
|
||||
* @param boolean $bare
|
||||
* @return string The email body in plain text format.
|
||||
*/
|
||||
function forum_make_mail_text($course, $forum, $discussion, $post, $userfrom, $userto, $bare = false) {
|
||||
global $CFG, $USER;
|
||||
@ -804,7 +813,15 @@ function forum_make_mail_text($course, $forum, $discussion, $post, $userfrom, $u
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO document
|
||||
* Builds and returns the body of the email notification in html format.
|
||||
*
|
||||
* @param object $course
|
||||
* @param object $forum
|
||||
* @param object $discussion
|
||||
* @param object $post
|
||||
* @param object $userfrom
|
||||
* @param object $userto
|
||||
* @return string The email text in HTML format
|
||||
*/
|
||||
function forum_make_mail_html($course, $forum, $discussion, $post, $userfrom, $userto) {
|
||||
global $CFG;
|
||||
@ -845,8 +862,15 @@ function forum_make_mail_html($course, $forum, $discussion, $post, $userfrom, $u
|
||||
|
||||
return $posthtml;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* TODO document
|
||||
*
|
||||
* @param object $course
|
||||
* @param object $user
|
||||
* @param object $mod TODO this is not used in this function, refactor
|
||||
* @param object $forum
|
||||
* @return object A standard object with 2 variables: info (number of posts for this user) and time (last modified)
|
||||
*/
|
||||
function forum_user_outline($course, $user, $mod, $forum) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user