Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

The screen with a list of users.

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

Defines 1 class

grade:: (16 methods):
  allowcategories()
  filter()
  select_label()
  description()
  options()
  item_type()
  original_definition()
  init()
  original_headers()
  format_line()
  item_range()
  supports_paging()
  pager()
  heading()
  summary()
  process()


Class: grade  - X-Ref

The screen with a list of users.

allowcategories()   X-Ref
True if $CFG->grade_overridecat is true

return: bool

filter($item)   X-Ref
Filter the list excluding category items (if required)?

param: grade_item $item The grade item.

select_label()   X-Ref
Get the label for the select box that chooses items for this page.

return: string

description()   X-Ref
Get the description of this page

return: string

options()   X-Ref
Convert this list of items into an options list

return: array

item_type()   X-Ref
Return the type of the things in this list.

return: string

original_definition()   X-Ref
Get the original settings for this item

return: array

init($selfitemisempty = false)   X-Ref
Init this page

param: bool $selfitemisempty True if we have not selected a user.

original_headers()   X-Ref
Get the table headers

return: array

format_line($item)   X-Ref
Format a row in the table

param: user $item
return: string

item_range()   X-Ref
Get the range ui element for this grade_item

return: element;

supports_paging()   X-Ref
Does this page require paging?

return: bool

pager()   X-Ref
Get the pager for this page.

return: string

heading()   X-Ref
Get the heading for this page.

return: string

summary()   X-Ref
Get the summary for this table.

return: string

process($data)   X-Ref
Process the data from the form.

param: array $data
return: array of warnings