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

param: grade_item $item
return: string

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

param: grade_item $item
return: string

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

param: grade_item $item
return: grade_category

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.

param: array $data
return: array of warnings