Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
tool_lp\output\template_plans_table Class Reference

Template plans table class. More...

Inheritance diagram for tool_lp\output\template_plans_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_name ($row)
 Format column name.
 
 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 plans table class.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

tool_lp\output\template_plans_table::col_name ( $row)
protected

Format column name.

Parameters
stdClass$row
Return values
string

◆ get_sql_and_params()

tool_lp\output\template_plans_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_plans_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: