Subclass of role_allow_role_page for the Allow views tab.
More...
|
| __construct () |
| core_role_allow_view_page constructor.
|
|
| get_intro_text () |
| Get intro text for role allow view page. 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.
|
|
|
| $allowed = null |
|
array | $allowedtargetroles |
|
| $roles |
|
| $tablename |
|
| $targetcolname |
|
Subclass of role_allow_role_page for the Allow views tab.
- Copyright
- 2016 onwards Andrew Hancox andre.nosp@m.wdch.nosp@m.ancox.nosp@m.@goo.nosp@m.glema.nosp@m.il.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_cell_tooltip()
core_role_allow_view_page::get_cell_tooltip |
( |
|
$fromrole, |
|
|
|
$targetrole |
|
) |
| |
|
protected |
Get tool tip for cell.
- Parameters
-
string | $fromrole | |
string | $targetrole | |
- Return values
-
- Exceptions
-
◆ get_eventclass()
core_role_allow_view_page::get_eventclass |
( |
| ) |
|
|
protected |
◆ get_intro_text()
core_role_allow_view_page::get_intro_text |
( |
| ) |
|
◆ get_table()
core_role_allow_role_page::get_table |
( |
| ) |
|
|
inherited |
Returns structure that can be passed to print_table, containing one cell for each checkbox.
- Return values
-
◆ is_allowed_target()
core_role_allow_role_page::is_allowed_target |
( |
|
$targetroleid | ) |
|
|
protectedinherited |
Is target allowed?
- Parameters
-
integer | $targetroleid | a role id. |
- Return values
-
boolean | whether the user should be allowed to select this role as a target role. |
Reimplemented in core_role_allow_switch_page.
◆ load_required_roles()
core_role_allow_role_page::load_required_roles |
( |
| ) |
|
|
protectedinherited |
◆ set_allow()
core_role_allow_view_page::set_allow |
( |
|
$fromroleid, |
|
|
|
$targetroleid |
|
) |
| |
|
protected |
Allow from role to view target role.
- Parameters
-
int | $fromroleid | |
int | $targetroleid | |
Reimplemented from core_role_allow_role_page.
The documentation for this class was generated from the following file: