mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-77837 core: Improve usage docs for cron_setup_user
This commit is contained in:
parent
44d734147a
commit
202718f968
1 changed files with 5 additions and 1 deletions
|
@ -170,7 +170,11 @@ function get_moodle_cookie() {
|
|||
|
||||
/**
|
||||
* Sets up current user and course environment (lang, etc.) in cron.
|
||||
* Do not use outside of cron script!
|
||||
* Note: This function is intended only for use in:
|
||||
* - the cron runner scripts
|
||||
* - individual tasks which extend the adhoc_task and scheduled_task classes
|
||||
* - unit tests related to tasks
|
||||
* - other parts of the cron/task system
|
||||
*
|
||||
* @param stdClass $user full user object, null means default cron user (admin),
|
||||
* value 'reset' means reset internal static caches.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue