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.

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

The gradebook simple view - base class for the table

Copyright: 2014 Moodle Pty Ltd (http://moodle.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 274 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

tablelike:: (11 methods):
  headers()
  set_headers()
  init_errors()
  set_init_error()
  definition()
  set_definition()
  format_definition()
  html()
  bulk_insert()
  is_readonly()
  buttons()


Class: tablelike  - X-Ref

The gradebook simple view - base class for the table

headers()   X-Ref
Get the table headers

return: array

set_headers(array $overwrite)   X-Ref
Set the table headers

param: array $overwrite New headers
return: tablelike This

init_errors()   X-Ref
Get the list of errors

return: array

set_init_error(string $mesg)   X-Ref
Set an error detected while building the page.

param: string $mesg

definition()   X-Ref
Get the table definition

return: array The definition.

set_definition(array $overwrite)   X-Ref
Set the table definition

param: array $overwrite New definition
return: tablelike This

format_definition(grade_grade $grade)   X-Ref
Get a element to generate the HTML for this table row

param: grade_grade $grade The grade.
return: array

html()   X-Ref
Get the HTML for the whole table

return: string

bulk_insert()   X-Ref
Get the HTML for the bulk insert form

return: string

is_readonly()   X-Ref
Return true if this is read-only.

return: bool

buttons(bool $disabled = false)   X-Ref
Get the buttons for saving changes.

param: bool $disabled If button is disabled
return: array