[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/roles/classes/ -> define_role_table_advanced.php (summary)

Advanced role definition form.

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

Defines 1 class

core_role_define_role_table_advanced:: (25 methods):
  __construct()
  load_current_permissions()
  read_submitted_permissions()
  is_submission_valid()
  force_duplicate()
  force_archetype()
  force_preset()
  get_role_name()
  get_role_id()
  get_archetype()
  load_parent_permissions()
  save_changes()
  save_allow()
  get_name_field()
  get_shortname_field()
  get_description_field()
  get_archetype_field()
  get_assignable_levels_control()
  get_allow_roles_list()
  get_allow_role_control()
  get_role_risks_info()
  print_field()
  print_show_hide_advanced_button()
  display()
  add_permission_cells()


Class: core_role_define_role_table_advanced  - X-Ref

As well as tracking the permissions information about the role we are creating
or editing, we also track the other information about the role. (This class is
starting to be more and more like a formslib form in some respects.)

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

load_current_permissions()   X-Ref
No description

read_submitted_permissions()   X-Ref
No description

is_submission_valid()   X-Ref
No description

force_duplicate($roleid, array $options)   X-Ref
Call this after the table has been initialised,
this resets everything to that role.

param: int $roleid role id or 0 for no role
param: array $options array with following keys:

force_archetype($archetype, array $options)   X-Ref
Change the role definition to match given archetype.

param: string $archetype
param: array $options array with following keys:

force_preset($xml, array $options)   X-Ref
Change the role definition to match given preset.

param: string $xml
param: array $options array with following keys:

get_role_name()   X-Ref
No description

get_role_id()   X-Ref
No description

get_archetype()   X-Ref
No description

load_parent_permissions()   X-Ref
No description

save_changes()   X-Ref
No description

save_allow($type)   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_assignable_levels_control()   X-Ref
No description

get_allow_roles_list($type, $roleid = null)   X-Ref
Returns an array of roles of the allowed type.

param: string $type Must be one of: assign, switch, or override.
param: int $roleid (null means current role)
return: array

get_allow_role_control($type)   X-Ref
Returns an array of roles with the allowed type.

param: string $type Must be one of: assign, switch, or override.
return: array Am array of role names with the allowed type

get_role_risks_info()   X-Ref
Returns information about the risks associated with a role.

return: string

print_field($name, $caption, $field)   X-Ref
No description

print_show_hide_advanced_button()   X-Ref
No description

display()   X-Ref
No description

add_permission_cells($capability)   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1