مطالب مطرح شده توسط Howard Miller

عکس Core developers عکس Documentation writers عکس Particularly helpful Moodlers عکس Peer reviewers عکس Plugin developers
You need to enrol yourself on the course.

Assume you're the administrator, you have access to *all* courses. On some sites (e.g. mine) this is thousands of courses and you wouldn't want them all to appear on the Dashboard.
عکس Core developers عکس Documentation writers عکس Particularly helpful Moodlers عکس Peer reviewers عکس Plugin developers
What version of Moodle is this? I'm unsure but I have a feeling that this requirement has gone.

Anyway, there are loads of examples of using it throughout the Moodle code. The idea was to abstract text comparisons for some databases that did it differently.
 
Also, it's $DB->sql_compare_text() and those get_record_sql() calls are completely wrong. Go and read... https://moodledev.io/docs/4.5/apis/core/dml
عکس Core developers عکس Documentation writers عکس Particularly helpful Moodlers عکس Peer reviewers عکس Plugin developers
If your mail service requires this to be given a valid address then that's a question for the mail service support. It's nothing to do with Moodle (and we can't answer that). Often, a valid 'from' address is required to avoid the mail getting blocked. That is - you can't just make up a noreply address.
عکس Core developers عکس Documentation writers عکس Particularly helpful Moodlers عکس Peer reviewers عکس Plugin developers
It's a cron jon (scheduled task or adhoc task). It's the lib function update_internal_user_password() most likely.