Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
tool_lp\output\template_cohorts_table Class Reference

Template cohorts table class. More...

Inheritance diagram for tool_lp\output\template_cohorts_table:

Public Member Functions

 __construct ($uniqueid, core_competency\template $template)
 Sets up the table.
 
 print_nothing_to_display ()
 Override the default implementation to set a notification.
 
 query_db ($pagesize, $useinitialsbar=true)
 Query the DB.
 

Protected Member Functions

 col_actions ($row)
 Column actions.
 
 define_table_columns ()
 Setup the headers for the table.
 
 define_table_configs ()
 Define table configs.
 
 get_sql_and_params ($count=false)
 Builds the SQL query.
 

Protected Attributes

context $context
 The context.
 
core_competency template $template
 The template.
 

Detailed Description

Template cohorts table class.

Note that presently this table may display some rows although the current user does not have permission to view those cohorts.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

tool_lp\output\template_cohorts_table::__construct ( $uniqueid,
core_competency\template $template )

Sets up the table.

Parameters
string$uniqueidUnique id of table.
core_competency\template$templateThe template.

Member Function Documentation

◆ col_actions()

tool_lp\output\template_cohorts_table::col_actions ( $row)
protected

Column actions.

Parameters
object$row
Return values
string

◆ get_sql_and_params()

tool_lp\output\template_cohorts_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()

tool_lp\output\template_cohorts_table::query_db ( $pagesize,
$useinitialsbar = true )

Query the DB.

Parameters
int$pagesizesize of page for paginated displayed table.
bool$useinitialsbardo you want to use the initials bar.

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