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.

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.