|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Subclass of role_allow_role_page for the Allow overrides tab. More...
Public Member Functions | |
| get_intro_text () | |
| Snippet of text displayed above the table, telling the admin what to do. More... | |
| get_table () | |
| Returns structure that can be passed to print_table, containing one cell for each checkbox. More... | |
| load_current_settings () | |
| Load the current allows from the database. | |
| process_submission () | |
| Update the data with the new settings submitted by the user. | |
Protected Member Functions | |
| get_cell_tooltip ($fromrole, $targetrole) | |
| get_eventclass () | |
| Returns the allow class respective event class name. More... | |
| is_allowed_target ($targetroleid) | |
| Is target allowed? More... | |
| load_required_roles () | |
| Load information about all the roles we will need information about. More... | |
| set_allow ($fromroleid, $targetroleid) | |
| Set one allow in the database. More... | |
Protected Attributes | |
| $allowed = null | |
| $roles | |
| $tablename | |
| $targetcolname | |
Subclass of role_allow_role_page for the Allow overrides tab.
|
protected |
Returns the allow class respective event class name.
| string |
Reimplemented from core_role_allow_role_page.
| core_role_allow_override_page::get_intro_text | ( | ) |
Snippet of text displayed above the table, telling the admin what to do.
| string |
Reimplemented from core_role_allow_role_page.
|
inherited |
Returns structure that can be passed to print_table, containing one cell for each checkbox.
| html_table | a table |
|
protectedinherited |
Is target allowed?
| integer | $targetroleid | a role id. |
| boolean | whether the user should be allowed to select this role as a target role. |
Reimplemented in core_role_allow_switch_page.
|
protectedinherited |
Load information about all the roles we will need information about.
Reimplemented in core_role_allow_switch_page.
|
protected |
Set one allow in the database.
| int | $fromroleid | |
| int | $targetroleid |
Reimplemented from core_role_allow_role_page.