Search moodle.org's
Developer Documentation

See Release Notes

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

Library code used by the roles administration interfaces.

Copyright: 1999 onwards Martin Dougiamas (http://dougiamas.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 136 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_role_view_role_definition_table:: (11 methods):
  __construct()
  save_changes()
  get_name_field()
  get_shortname_field()
  get_description_field()
  get_archetype_field()
  get_allow_role_control()
  print_show_hide_advanced_button()
  get_role_risks_info()
  skip_row()
  add_permission_cells()


Class: core_role_view_role_definition_table  - X-Ref

__construct($context, $roleid)   X-Ref
No description

save_changes()   X-Ref
No description

get_name_field($id)   X-Ref
No description

get_shortname_field($id)   X-Ref
No description

get_description_field($id)   X-Ref
No description

get_archetype_field($id)   X-Ref
No description

get_allow_role_control($type)   X-Ref
No description

print_show_hide_advanced_button()   X-Ref
No description

get_role_risks_info()   X-Ref
Returns HTML risk icons.

return: string

skip_row($capability)   X-Ref
Returns true if the row should be skipped.

param: string $capability
return: bool

add_permission_cells($capability)   X-Ref
No description