Class containing helper functions for the data privacy tool.
More...
|
const | DEFAULT_PAGE_SIZE = 20 |
| The default number of results to be shown per page.
|
|
const | FILTER_CREATION = 3 |
| Filter constant associated with the request creation filter.
|
|
const | FILTER_STATUS = 2 |
| Filter constant associated with the request status filter.
|
|
const | FILTER_TYPE = 1 |
| Filter constant associated with the request type filter.
|
|
const | PREF_REQUEST_FILTERS = 'tool_dataprivacy_request-filters' |
| The request filters preference key.
|
|
const | PREF_REQUEST_PERPAGE = 'tool_dataprivacy_request-perpage' |
| The number of data request records per page preference key.
|
|
Class containing helper functions for the data privacy tool.
- Copyright
- 2018 Jun Pataleta
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_children_of_user()
static tool_dataprivacy\local\helper::get_children_of_user |
( |
|
$userid | ) |
|
|
static |
Get the users that a user can make data request for.
E.g. User having a parent role and has the 'tool/dataprivacy:makedatarequestsforchildren' capability.
- Parameters
-
- Return values
-
◆ get_request_creation_method_string()
static tool_dataprivacy\local\helper::get_request_creation_method_string |
( |
|
$creation | ) |
|
|
static |
Retrieves the human-readable value of a data request creation method.
- Parameters
-
int | $creation | The request creation method. |
- Return values
-
- Exceptions
-
◆ get_request_creation_methods()
static tool_dataprivacy\local\helper::get_request_creation_methods |
( |
| ) |
|
|
static |
Returns the key value-pairs of request creation method code and string value.
- Return values
-
◆ get_request_filter_options()
static tool_dataprivacy\local\helper::get_request_filter_options |
( |
| ) |
|
|
static |
Get options for the data requests filter.
- Return values
-
- Exceptions
-
◆ get_request_status_string()
static tool_dataprivacy\local\helper::get_request_status_string |
( |
|
$status | ) |
|
|
static |
Retrieves the human-readable value of a data request status.
- Parameters
-
int | $status | The request status. |
- Return values
-
- Exceptions
-
◆ get_request_statuses()
static tool_dataprivacy\local\helper::get_request_statuses |
( |
| ) |
|
|
static |
Returns the key value-pairs of request status code and string value.
- Return values
-
◆ get_request_type_string()
static tool_dataprivacy\local\helper::get_request_type_string |
( |
|
$requesttype | ) |
|
|
static |
Retrieves the human-readable text value of a data request type.
- Parameters
-
int | $requesttype | The request type. |
- Return values
-
- Exceptions
-
◆ get_request_types()
static tool_dataprivacy\local\helper::get_request_types |
( |
| ) |
|
|
static |
Returns the key value-pairs of request type code and their string value.
- Return values
-
◆ get_request_types_short()
static tool_dataprivacy\local\helper::get_request_types_short |
( |
| ) |
|
|
static |
Returns the key value-pairs of request type code and their shortened string value.
- Return values
-
◆ get_shortened_request_type_string()
static tool_dataprivacy\local\helper::get_shortened_request_type_string |
( |
|
$requesttype | ) |
|
|
static |
Retrieves the human-readable shortened text value of a data request type.
- Parameters
-
int | $requesttype | The request type. |
- Return values
-
- Exceptions
-
The documentation for this class was generated from the following file: