auth_support
class auth_support
| internal |
Authentication support wrapper for Moodle's authentication functions.
Methods
static void
require_login(mixed $courseorid = null, bool $autologinguest = true, mixed $cm = null, bool $setocoinhibit = false, bool $displaymessage = true)
Ensures that the user is logged in.
static bool
is_logged_in()
Checks if the user is currently logged in.
static bool
is_guest()
Checks if the current user is a guest.
static bool
Details
at line 41
static void
require_login(mixed $courseorid = null, bool $autologinguest = true, mixed $cm = null, bool $setocoinhibit = false, bool $displaymessage = true)
Ensures that the user is logged in.
at line 51
static bool
is_logged_in()
Checks if the user is currently logged in.
at line 61
static bool
is_guest()
Checks if the current user is a guest.
at line 73
static bool
complete_user_login(stdClass $user)
Completes the user login process.
at line 83
static stdClass|null
get_admin()
Retrieves the site administrator user record.