Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.