Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

Defines 1 class

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


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.
return: bool

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: stdClass $item
return: array

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: \stdClass of warnings

get_user_action_menu(\stdClass $user)   X-Ref
Return the action menu HTML for the user item.

param: \stdClass $user
return: mixed