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 user screen.

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

Defines 1 class

user:: (14 methods):
  select_label()
  description()
  options()
  item_type()
  init()
  original_headers()
  format_line()
  format_icon()
  category()
  heading()
  summary()
  pager()
  supports_paging()
  process()


Class: user  - X-Ref

The user screen.

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 for the screen.

return: string

options()   X-Ref
Convert the list of items to a list of options.

return: array

item_type()   X-Ref
Get the type of items on this screen.

return: string

init($selfitemisempty = false)   X-Ref
Init the screen

param: bool $selfitemisempty Have we selected an item yet?

original_headers()   X-Ref
Get the list of headers for the table.

return: array List of headers

format_line($item)   X-Ref
Format each row of the table.

return: string
param: grade_item $item

format_icon($item)   X-Ref
Helper to get the icon for an item.

return: string
param: grade_item $item

category($item)   X-Ref
Helper to get the category for an item.

return: grade_category
param: grade_item $item

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

return: string

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

return: string

pager()   X-Ref
Default pager

return: string

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

return: bool

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

return: array of warnings
param: array $data