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.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 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: 243 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

tablelike:: (10 methods):
  headers()
  set_headers()
  init_errors()
  set_init_error()
  definition()
  set_definition()
  format_definition()
  html()
  bulk_insert()
  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($overwrite)   X-Ref
Set the table headers

return: tablelike This
param: array $overwrite New headers

init_errors()   X-Ref
Get the list of errors

return: array

set_init_error($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($overwrite)   X-Ref
Set the table definition

return: tablelike This
param: array $overwrite New definition

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

return: string
param: array $line This is a list of lines in the table (modified)
param: grade_grade $grade The grade.

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

buttons()   X-Ref
Get the buttons for saving changes.

return: array