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 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