The class for displaying the data requests table.
More...
|
| __construct ($userid=0, $statuses=[], $types=[], $creationmethods=[], $manage=false) |
| data_requests_table constructor.
|
|
| col_actions ($data) |
| The actions column.
|
|
| col_comments ($data) |
| The comments column.
|
|
| col_requestedby ($data) |
| The requesting user's column.
|
|
| col_select ($data) |
| The select column.
|
|
| col_status ($data) |
| The status column.
|
|
| col_timecreated ($data) |
| The context information column.
|
|
| col_type ($data) |
| The type column.
|
|
| col_userid ($data) |
| The user column.
|
|
| get_requests_per_page () |
| Get the number of data request records to be displayed per page.
|
|
| get_requests_per_page_options () |
| Get the available options for the number of data request to be displayed per page.
|
|
| print_nothing_to_display () |
| Override default implementation to display a more meaningful information to the user.
|
|
| query_db ($pagesize, $useinitialsbar=true) |
| Query the database for results to display in the table.
|
|
| set_requests_per_page (int $perpage) |
| Set the number of data request records to be displayed per page.
|
|
| set_requests_per_page_options (array $perpageoptions) |
| Set the available options for the number of data request to be displayed per page.
|
|
| wrap_html_finish () |
| Override the table's wrap_html_finish method in order to render the bulk actions and records per page options.
|
|
|
| show_hide_link ($column, $index) |
| Override the table's show_hide_link method to prevent the show/hide links from rendering.
|
|
|
int[] array | $creationmethods = [] |
| The request creation method filters.
|
|
tool_dataprivacy data_request[] | $datarequests = [] |
| Array of data request persistents.
|
|
bool | $manage = false |
| Whether this table is being rendered for managing data requests.
|
|
stdClass[] | $ongoingrequests = [] |
| List of userids and whether they have any ongoing active requests.
|
|
int | $perpage |
| The number of data request to be displayed per page.
|
|
int[] | $perpageoptions = [25, 50, 100, 250] |
| The available options for the number of data request to be displayed per page.
|
|
int[] | $statuses = [] |
| The status filters.
|
|
int[] | $types = [] |
| The request type filters.
|
|
int | $userid = 0 |
| The user ID.
|
|
The class for displaying the data requests table.
- Copyright
- 2018 Jun Pataleta jun@m.nosp@m.oodl.nosp@m.e.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_dataprivacy\output\data_requests_table::__construct |
( |
| $userid = 0, |
|
|
| $statuses = [], |
|
|
| $types = [], |
|
|
| $creationmethods = [], |
|
|
| $manage = false ) |
data_requests_table constructor.
- Parameters
-
int | $userid | The user ID |
int[] | $statuses | |
int[] | $types | |
int[] | $creationmethods | |
bool | $manage | |
- Exceptions
-
◆ col_actions()
tool_dataprivacy\output\data_requests_table::col_actions |
( |
| $data | ) |
|
The actions column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ col_comments()
tool_dataprivacy\output\data_requests_table::col_comments |
( |
| $data | ) |
|
The comments column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ col_requestedby()
tool_dataprivacy\output\data_requests_table::col_requestedby |
( |
| $data | ) |
|
The requesting user's column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ col_select()
tool_dataprivacy\output\data_requests_table::col_select |
( |
| $data | ) |
|
The select column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
- Exceptions
-
moodle_exception | |
coding_exception | |
◆ col_status()
tool_dataprivacy\output\data_requests_table::col_status |
( |
| $data | ) |
|
The status column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ col_timecreated()
tool_dataprivacy\output\data_requests_table::col_timecreated |
( |
| $data | ) |
|
The context information column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ col_type()
tool_dataprivacy\output\data_requests_table::col_type |
( |
| $data | ) |
|
The type column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ col_userid()
tool_dataprivacy\output\data_requests_table::col_userid |
( |
| $data | ) |
|
The user column.
- Parameters
-
stdClass | $data | The row data. |
- Return values
-
◆ get_requests_per_page()
tool_dataprivacy\output\data_requests_table::get_requests_per_page |
( |
| ) |
|
Get the number of data request records to be displayed per page.
- Return values
-
int | The number of data request records. |
◆ get_requests_per_page_options()
tool_dataprivacy\output\data_requests_table::get_requests_per_page_options |
( |
| ) |
|
Get the available options for the number of data request to be displayed per page.
- Return values
-
array | The available options for the number of data request to be displayed per page. |
◆ query_db()
tool_dataprivacy\output\data_requests_table::query_db |
( |
| $pagesize, |
|
|
| $useinitialsbar = true ) |
Query the database for results to display in the table.
- Parameters
-
int | $pagesize | size of page for paginated displayed table. |
bool | $useinitialsbar | do you want to use the initials bar. |
- Exceptions
-
◆ set_requests_per_page()
tool_dataprivacy\output\data_requests_table::set_requests_per_page |
( |
int | $perpage | ) |
|
Set the number of data request records to be displayed per page.
- Parameters
-
int | $perpage | The number of data request records. |
◆ set_requests_per_page_options()
tool_dataprivacy\output\data_requests_table::set_requests_per_page_options |
( |
array | $perpageoptions | ) |
|
Set the available options for the number of data request to be displayed per page.
- Parameters
-
array | $perpageoptions | The available options for the number of data request to be displayed per page. |
◆ show_hide_link()
tool_dataprivacy\output\data_requests_table::show_hide_link |
( |
| $column, |
|
|
| $index ) |
|
protected |
Override the table's show_hide_link method to prevent the show/hide links from rendering.
- Parameters
-
string | $column | the column name, index into various names. |
int | $index | numerical index of the column. |
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/dataprivacy/classes/output/data_requests_table.php