|
static | can_create_report (?int $userid=null, ?context $context=null) |
| Whether given user can create a new report.
|
|
static | can_duplicate_report (report $report, ?int $userid=null, ?context $context=null) |
| Whether given user can duplicate a report.
|
|
static | can_edit_report (report $report, ?int $userid=null) |
| Whether given user can edit report.
|
|
static | can_view_report (report $report, ?int $userid=null) |
| Whether given user can view report.
|
|
static | can_view_reports_list (?int $userid=null, ?context $context=null) |
| Whether given user can view reports list.
|
|
static | require_can_create_report (?int $userid=null, ?context $context=null) |
| Require given user can create a new report.
|
|
static | require_can_duplicate_report (report $report, ?int $userid=null, ?context $context=null) |
| Require given user can duplicate a report.
|
|
static | require_can_edit_report (report $report, ?int $userid=null) |
| Require given user can edit report.
|
|
static | require_can_view_report (report $report, ?int $userid=null) |
| Require given user can view report.
|
|
static | require_can_view_reports_list (?int $userid=null, ?context $context=null) |
| Require given user can view reports list.
|
|
◆ 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_duplicate_report()
static core_reportbuilder\permission::can_duplicate_report |
( |
report | $report, |
|
|
?int | $userid = null, |
|
|
?context | $context = null ) |
|
static |
Whether given user can duplicate a report.
- Parameters
-
report | $report | |
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_duplicate_report()
static core_reportbuilder\permission::require_can_duplicate_report |
( |
report | $report, |
|
|
?int | $userid = null, |
|
|
?context | $context = null ) |
|
static |
Require given user can duplicate a report.
- Parameters
-
report | $report | |
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:
- reportbuilder/classes/permission.php