Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 254 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

published_resources_table:: (7 methods):
  __construct()
  col_name()
  col_launch()
  col_edit()
  query_db()
  get_display_text()
  get_deleted_activity_name_html()


Class: published_resources_table  - X-Ref

Class which displays a list of resources published over LTI Advantage.

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

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

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

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

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

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

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.

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

get_deleted_activity_name_html(\stdClass $tool)   X-Ref
Get a warning icon, with tooltip, describing enrolment instances sharing activities which have been deleted.

return: string the HTML for the name column.
param: \stdClass $tool the tool instance record.