Infected file report.
More...
|
| | __construct ($uniqueid, moodle_url $url, $page=0, $perpage=30) |
| | Table constructor.
|
| |
| | display ($pagesize, $useinitialsbar, $downloadhelpbutton='') |
| | Display table with download all and delete all buttons.
|
| |
| | query_db ($pagesize, $useinitialsbar=true) |
| | Get data.
|
| |
◆ __construct()
| report_infectedfiles\table\infectedfiles_table::__construct |
( |
| $uniqueid, |
|
|
moodle_url | $url, |
|
|
| $page = 0, |
|
|
| $perpage = 30 ) |
Table constructor.
- Parameters
-
| int | $uniqueid | table id |
| moodle_url | $url | page url |
| int | $page | current page |
| int | $perpage | number or record per page |
- Exceptions
-
◆ col_actions()
| report_infectedfiles\table\infectedfiles_table::col_actions |
( |
| $row | ) |
|
|
protected |
Custom actions column.
- Parameters
-
| stdClass | $row | an incident record. |
- Return values
-
| string | content of action column. |
- Exceptions
-
| coding_exception | |
| moodle_exception | |
◆ col_author()
| report_infectedfiles\table\infectedfiles_table::col_author |
( |
| $row | ) |
|
|
protected |
Column to display the authors fullname from userid.
- Parameters
-
| stdClass | $row | the row from sql. |
- Return values
-
◆ col_reason()
| report_infectedfiles\table\infectedfiles_table::col_reason |
( |
| $row | ) |
|
|
protected |
Column to display the failure reason.
- Parameters
-
| stdClass | $row | the row from sql. |
- Return values
-
| string | the formatted reason. |
◆ col_timecreated()
| report_infectedfiles\table\infectedfiles_table::col_timecreated |
( |
| $row | ) |
|
|
protected |
Custom time column.
- Parameters
-
| stdClass | $row | an incident record. |
- Return values
-
| string | time created in user-friendly format. |
◆ define_table_columns()
| report_infectedfiles\table\infectedfiles_table::define_table_columns |
( |
| ) |
|
|
protected |
Table columns and corresponding headers.
- Exceptions
-
◆ define_table_configs()
| report_infectedfiles\table\infectedfiles_table::define_table_configs |
( |
\moodle_url | $url | ) |
|
|
protected |
Define table configuration.
- Parameters
-
◆ display()
| report_infectedfiles\table\infectedfiles_table::display |
( |
| $pagesize, |
|
|
| $useinitialsbar, |
|
|
| $downloadhelpbutton = '' ) |
Display table with download all and delete all buttons.
- Parameters
-
| int | $pagesize | number or records perpage |
| bool | $useinitialsbar | use the bar or not |
| string | $downloadhelpbutton | help button |
- Return values
-
- Exceptions
-
| coding_exception | |
| moodle_exception | |
◆ get_sql_and_params()
| report_infectedfiles\table\infectedfiles_table::get_sql_and_params |
( |
| $count = false | ) |
|
|
protected |
Builds the SQL query.
- Parameters
-
| bool | $count | When true, return the count SQL. |
- Return values
-
| array | containing sql to use and an array of params. |
◆ query_db()
| report_infectedfiles\table\infectedfiles_table::query_db |
( |
| $pagesize, |
|
|
| $useinitialsbar = true ) |
Get data.
- Parameters
-
| int | $pagesize | number of records to fetch |
| bool | $useinitialsbar | initial bar |
- Exceptions
-
The documentation for this class was generated from the following file:
- report/infectedfiles/classes/table/infectedfiles_table.php