Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250605) (9223e346c3e)
enrol_lti\manage_table Class Reference

Handles displaying enrolment LTI instances. More...

Inheritance diagram for enrol_lti\manage_table:

Public Member Functions

 __construct ($courseid)
 Sets up the table.
 
 col_edit ($tool)
 Generate the edit column.
 
 col_launch ($tool)
 Generate the launch column.
 
 col_name ($tool)
 Generate the name column.
 
 col_registration ($tool)
 Generate the Registration column.
 
 query_db ($pagesize, $useinitialsbar=true)
 Query the reader.
 

Protected Member Functions

 get_deleted_activity_name_html (\stdClass $tool)
 Get a warning icon, with tooltip, describing enrolment instances sharing activities which have been deleted.
 
 get_display_text ($tool, $text)
 Returns text to display in the columns.
 

Protected Attributes

bool $canconfig
 $canconfig
 
int $courseid
 $courseid The course id.
 
bool $ltienabled
 $ltienabled
 
enrol_plugin $ltiplugin
 $ltiplugin
 

Detailed Description

Handles displaying enrolment LTI instances.

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

Constructor & Destructor Documentation

◆ __construct()

enrol_lti\manage_table::__construct ( $courseid)

Sets up the table.

Parameters
string$courseidThe id of the course.

Member Function Documentation

◆ col_edit()

enrol_lti\manage_table::col_edit ( $tool)

Generate the edit column.

Parameters
stdClass$toolevent data.
Return values
string

◆ col_launch()

enrol_lti\manage_table::col_launch ( $tool)

Generate the launch column.

Parameters
stdClass$toolinstance data.
Return values
string

◆ col_name()

enrol_lti\manage_table::col_name ( $tool)

Generate the name column.

Parameters
stdClass$toolevent data.
Return values
string

◆ col_registration()

enrol_lti\manage_table::col_registration ( $tool)

Generate the Registration column.

Parameters
stdClass$toolinstance data.
Return values
string

◆ get_deleted_activity_name_html()

enrol_lti\manage_table::get_deleted_activity_name_html ( \stdClass $tool)
protected

Get a warning icon, with tooltip, describing enrolment instances sharing activities which have been deleted.

Parameters
stdClass$toolthe tool instance record.
Return values
stringthe HTML for the name column.

◆ get_display_text()

enrol_lti\manage_table::get_display_text ( $tool,
$text )
protected

Returns text to display in the columns.

Parameters
stdClass$toolthe tool
string$textthe text to alter
Return values
string

◆ query_db()

enrol_lti\manage_table::query_db ( $pagesize,
$useinitialsbar = true )

Query the reader.

Store results in the object for use by build_table.

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: