Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250605) (9223e346c3e)
report_infectedfiles\table\infectedfiles_table Class Reference

Infected file report. More...

Inheritance diagram for report_infectedfiles\table\infectedfiles_table:

Public Member Functions

 __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.
 

Protected Member Functions

 col_actions ($row)
 Custom actions column.
 
 col_author ($row)
 Column to display the authors fullname from userid.
 
 col_reason ($row)
 Column to display the failure reason.
 
 col_timecreated ($row)
 Custom time column.
 
 define_table_columns ()
 Table columns and corresponding headers.
 
 define_table_configs (\moodle_url $url)
 Define table configuration.
 
 get_sql_and_params ($count=false)
 Builds the SQL query.
 

Protected Attributes

int $page
 current page.
 

Detailed Description

Infected file report.

Author
Nathan Nguyen natha.nosp@m.nngu.nosp@m.yen@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

report_infectedfiles\table\infectedfiles_table::__construct ( $uniqueid,
moodle_url $url,
$page = 0,
$perpage = 30 )

Table constructor.

Parameters
int$uniqueidtable id
moodle_url$urlpage url
int$pagecurrent page
int$perpagenumber or record per page
Exceptions
coding_exception

Member Function Documentation

◆ col_actions()

report_infectedfiles\table\infectedfiles_table::col_actions ( $row)
protected

Custom actions column.

Parameters
stdClass$rowan incident record.
Return values
stringcontent 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$rowthe row from sql.
Return values
stringthe authors name.

◆ col_reason()

report_infectedfiles\table\infectedfiles_table::col_reason ( $row)
protected

Column to display the failure reason.

Parameters
stdClass$rowthe row from sql.
Return values
stringthe formatted reason.

◆ col_timecreated()

report_infectedfiles\table\infectedfiles_table::col_timecreated ( $row)
protected

Custom time column.

Parameters
stdClass$rowan incident record.
Return values
stringtime created in user-friendly format.

◆ define_table_columns()

report_infectedfiles\table\infectedfiles_table::define_table_columns ( )
protected

Table columns and corresponding headers.

Exceptions
coding_exception

◆ define_table_configs()

report_infectedfiles\table\infectedfiles_table::define_table_configs ( \moodle_url $url)
protected

Define table configuration.

Parameters
moodle_url$url

◆ display()

report_infectedfiles\table\infectedfiles_table::display ( $pagesize,
$useinitialsbar,
$downloadhelpbutton = '' )

Display table with download all and delete all buttons.

Parameters
int$pagesizenumber or records perpage
bool$useinitialsbaruse the bar or not
string$downloadhelpbuttonhelp button
Return values
void
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$countWhen true, return the count SQL.
Return values
arraycontaining sql to use and an array of params.

◆ query_db()

report_infectedfiles\table\infectedfiles_table::query_db ( $pagesize,
$useinitialsbar = true )

Get data.

Parameters
int$pagesizenumber of records to fetch
bool$useinitialsbarinitial bar
Exceptions
dml_exception

The documentation for this class was generated from the following file: