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.

Differences Between: [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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

param: array $overwrite New headers
return: tablelike This

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

param: array $overwrite New definition
return: tablelike This

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

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

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