Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Base class for managing the data in the grid of checkboxes on the role allow allow/overrides/switch editing pages (allow.php). More...
Public Member Functions | |
__construct ($tablename, $targetcolname) | |
Constructor. | |
get_intro_text () | |
Snippet of text displayed above the table, telling the admin what to do. | |
get_table () | |
Returns structure that can be passed to print_table, containing one cell for each checkbox. | |
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_eventclass () | |
Returns the allow class respective event class name. | |
is_allowed_target ($targetroleid) | |
Is target allowed? | |
load_required_roles () | |
Load information about all the roles we will need information about. | |
set_allow ($fromroleid, $targetroleid) | |
Set one allow in the database. | |
Protected Attributes | |
$allowed = null | |
$roles | |
$tablename | |
$targetcolname | |
Base class for managing the data in the grid of checkboxes on the role allow allow/overrides/switch editing pages (allow.php).
core_role_allow_role_page::__construct | ( | $tablename, | |
$targetcolname ) |
Constructor.
string | $tablename | the table where our data is stored. |
string | $targetcolname | the name of the target role id column. |
|
abstractprotected |
Returns the allow class respective event class name.
string |
Reimplemented in core_role_allow_assign_page, core_role_allow_override_page, core_role_allow_switch_page, and core_role_allow_view_page.
|
abstract |
Snippet of text displayed above the table, telling the admin what to do.
string |
Reimplemented in core_role_allow_assign_page, core_role_allow_override_page, core_role_allow_switch_page, and core_role_allow_view_page.
core_role_allow_role_page::get_table | ( | ) |
Returns structure that can be passed to print_table, containing one cell for each checkbox.
html_table | a table |
|
protected |
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.
|
protected |
Load information about all the roles we will need information about.
Reimplemented in core_role_allow_switch_page.
|
abstractprotected |
Set one allow in the database.
int | $fromroleid | |
int | $targetroleid |
Reimplemented in core_role_allow_assign_page, core_role_allow_override_page, core_role_allow_switch_page, and core_role_allow_view_page.