Moodle APIs 3.11
Moodle 3.11.11+ (Build: 20221125)
|
Login renderable class. More...
Public Member Functions | |
__construct (array $authsequence, $username='') | |
Constructor. More... | |
export_for_template (renderer_base $output) | |
Function to export the renderer data in a format that is suitable for a mustache template. More... | |
set_error ($error) | |
Set the error message. More... | |
Public Attributes | |
bool | $autofocusform |
Whether to auto focus the form fields. | |
bool | $canloginasguest |
Whether we can login as guest. | |
bool | $canloginbyemail |
Whether we can login by e-mail. | |
bool | $cansignup |
Whether we can sign-up. | |
help_icon | $cookieshelpicon |
The cookies help icon. | |
string | $error |
The error message, if any. | |
moodle_url | $forgotpasswordurl |
Forgot password URL. | |
array | $identityproviders |
Additional identify providers, contains the keys 'url', 'name' and 'icon'. | |
string | $instructions |
Login instructions, if any. | |
string | $logintoken |
The csrf token to limit login to requests that come from the login form. | |
moodle_url | $loginurl |
The form action login URL. | |
string | $maintenance |
Maintenance message, if Maintenance is enabled. | |
bool | $rememberusername |
Whether the username should be remembered. | |
moodle_url | $signupurl |
The sign-up URL. | |
string | $username |
The user name to pre-fill the form with. | |
Login renderable class.
core_auth\output\login::__construct | ( | array | $authsequence, |
$username = '' |
|||
) |
Constructor.
array | $authsequence | The enabled sequence of authentication plugins. |
string | $username | The username to display. |
core_auth\output\login::export_for_template | ( | renderer_base | $output | ) |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
stdClass|array |
Implements templatable.
core_auth\output\login::set_error | ( | $error | ) |
Set the error message.
string | $error | The error message. |