Report permission class.
More...
Report permission class.
- Copyright
- 2021 Paul Holden paulh.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ can_create_report()
static core_reportbuilder\permission::can_create_report |
( |
?int | $userid = null, |
|
|
?context | $context = null ) |
|
static |
Whether given user can create a new report.
- Parameters
-
int | null | $userid | User ID to check, or the current user if omitted |
context | null | $context | |
- Return values
-
◆ can_edit_report()
static core_reportbuilder\permission::can_edit_report |
( |
report | $report, |
|
|
?int | $userid = null ) |
|
static |
Whether given user can edit report.
- Parameters
-
report | $report | |
int | null | $userid | User ID to check, or the current user if omitted |
- Return values
-
◆ can_view_report()
static core_reportbuilder\permission::can_view_report |
( |
report | $report, |
|
|
?int | $userid = null ) |
|
static |
Whether given user can view report.
- Parameters
-
report | $report | |
int | null | $userid | User ID to check, or the current user if omitted |
- Return values
-
◆ can_view_reports_list()
static core_reportbuilder\permission::can_view_reports_list |
( |
?int | $userid = null, |
|
|
?context | $context = null ) |
|
static |
Whether given user can view reports list.
- Parameters
-
int | null | $userid | User ID to check, or the current user if omitted |
context | null | $context | |
- Return values
-
◆ require_can_create_report()
static core_reportbuilder\permission::require_can_create_report |
( |
?int | $userid = null, |
|
|
?context | $context = null ) |
|
static |
Require given user can create a new report.
- Parameters
-
int | null | $userid | User ID to check, or the current user if omitted |
context | null | $context | |
- Exceptions
-
◆ require_can_edit_report()
static core_reportbuilder\permission::require_can_edit_report |
( |
report | $report, |
|
|
?int | $userid = null ) |
|
static |
Require given user can edit report.
- Parameters
-
report | $report | |
int | null | $userid | User ID to check, or the current user if omitted |
- Exceptions
-
◆ require_can_view_report()
static core_reportbuilder\permission::require_can_view_report |
( |
report | $report, |
|
|
?int | $userid = null ) |
|
static |
Require given user can view report.
- Parameters
-
report | $report | |
int | null | $userid | User ID to check, or the current user if omitted |
- Exceptions
-
◆ require_can_view_reports_list()
static core_reportbuilder\permission::require_can_view_reports_list |
( |
?int | $userid = null, |
|
|
?context | $context = null ) |
|
static |
Require given user can view reports list.
- Parameters
-
int | null | $userid | User ID to check, or the current user if omitted |
context | null | $context | |
- Exceptions
-
The documentation for this class was generated from the following file: