Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Displays enrolment LTI instances.

Copyright: 2016 Mark Nelson <markn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 251 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

manage_table:: (7 methods):
  __construct()
  col_name()
  col_launch()
  col_registration()
  col_edit()
  query_db()
  get_display_text()


Class: manage_table  - X-Ref

Handles displaying enrolment LTI instances.

__construct($courseid)   X-Ref
Sets up the table.

param: string $courseid The id of the course.

col_name($tool)   X-Ref
Generate the name column.

param: \stdClass $tool event data.
return: string

col_launch($tool)   X-Ref
Generate the launch column.

param: \stdClass $tool instance data.
return: string

col_registration($tool)   X-Ref
Generate the Registration column.

param: \stdClass $tool instance data.
return: string

col_edit($tool)   X-Ref
Generate the edit column.

param: \stdClass $tool event data.
return: string

query_db($pagesize, $useinitialsbar = true)   X-Ref
Query the reader. Store results in the object for use by build_table.

param: int $pagesize size of page for paginated displayed table.
param: bool $useinitialsbar do you want to use the initials bar.

get_display_text($tool, $text)   X-Ref
Returns text to display in the columns.

param: \stdClass $tool the tool
param: string $text the text to alter
return: string