Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Templates table.

Author: Dmitrii Metelkin <dmitriim@catalyst-au.net>
Copyright: 2020 Catalyst IT
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 178 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

template_list:: (7 methods):
  __construct()
  col_name()
  col_description()
  col_enabled()
  col_used()
  col_actions()
  display()


Class: template_list  - X-Ref

Templates table.

__construct($id = null)   X-Ref
Constructor

param: string|null $id to be used by the table, autogenerated if null.

col_name(template $data)   X-Ref
Display name column.

param: \quizaccess_seb\template $data Template for this row.
return: string

col_description(template $data)   X-Ref
Display description column.

param: \quizaccess_seb\template $data Template for this row.
return: string

col_enabled(template $data)   X-Ref
Display enabled column.

param: \quizaccess_seb\template $data Template for this row.
return: string

col_used(template $data)   X-Ref
Display if a template is being used.

param: \quizaccess_seb\template $data Template for this row.
return: string

col_actions(template $data)   X-Ref
Display actions column.

param: \quizaccess_seb\template $data Template for this row.
return: string

display(array $records)   X-Ref
Sets the data of the table.

param: \quizaccess_seb\template[] $records An array with records.