Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
core_role

Files

file  admins_existing_selector.php
 Existing admin user selector.
 
file  admins_potential_selector.php
 Potential admin user selector.
 
file  allow_assign_page.php
 Role assign matrix.
 
file  allow_override_page.php
 Role override matrix.
 
file  allow_role_page.php
 Base class for allow matrices.
 
file  allow_switch_page.php
 Role witch matrix.
 
file  allow_view_page.php
 Role view matrix.
 
file  assign_user_selector_base.php
 Library code used by the roles administration interfaces.
 
file  capability_table_base.php
 Base capability table.
 
file  capability_table_with_risks.php
 Capabilities table with risks.
 
file  check_capability_table.php
 Library code used by the roles administration interfaces.
 
file  check_users_selector.php
 User selector.
 
file  define_role_table_advanced.php
 Advanced role definition form.
 
file  define_role_table_basic.php
 Library code used by the roles administration interfaces.
 
file  existing_role_holders.php
 Existing user selector.
 
file  lib.php
 Library code used by the roles administration interfaces.
 
file  managetabs.php
 Defines the tab bar used on the manage/allow assign/allow overrides pages.
 
file  override_permissions_table_advanced.php
 override permissions table.
 
file  permission_allow_form.php
 Allow something form.
 
file  permission_prohibit_form.php
 Prohibit something form.
 
file  permissions_table.php
 Library code used by the roles administration interfaces.
 
file  potential_assignees_below_course.php
 Library code used by the roles administration interfaces.
 
file  potential_assignees_course_and_above.php
 Library code used by the roles administration interfaces.
 
file  preset.php
 New role XML processing.
 
file  preset_form.php
 Role add/reset selection form.
 
file  provider.php
 Privacy Subsystem implementation for core_role.
 
file  view_role_definition_table.php
 Library code used by the roles administration interfaces.
 

Namespaces

 core_role\privacy
  
 

Classes

class  core_role\privacy\provider
 Privacy provider for core_role. More...
 
class  core_role_admins_existing_selector
 
class  core_role_admins_potential_selector
 
class  core_role_allow_assign_page
 Subclass of role_allow_role_page for the Allow assigns tab. More...
 
class  core_role_allow_override_page
 Subclass of role_allow_role_page for the Allow overrides tab. More...
 
class  core_role_allow_role_page
 Base class for managing the data in the grid of checkboxes on the role allow allow/overrides/switch editing pages (allow.php). More...
 
class  core_role_allow_switch_page
 Subclass of role_allow_role_page for the Allow switches tab. More...
 
class  core_role_allow_view_page
 Subclass of role_allow_role_page for the Allow views tab. More...
 
class  core_role_assign_user_selector_base
 Base class to avoid duplicating code. More...
 
class  core_role_capability_table_base
 This class represents a table with one row for each of a list of capabilities where the first cell in the row contains the capability name, and there is arbitrary stuff in the rest of the row. More...
 
class  core_role_capability_table_with_risks
 This subclass is the bases for both the define roles and override roles pages. More...
 
class  core_role_check_capability_table
 Subclass of core_role_capability_table_base for use on the Check permissions page. More...
 
class  core_role_check_users_selector
 User selector subclass for the selection of users in the check permissions page. More...
 
class  core_role_define_role_table_advanced
 As well as tracking the permissions information about the role we are creating or editing, we also track the other information about the role. More...
 
class  core_role_define_role_table_basic
 
class  core_role_existing_role_holders
 User selector subclass for the list of users who already have the role in question on the assign roles page. More...
 
class  core_role_override_permissions_table_advanced
 
class  core_role_permission_allow_form
 
class  core_role_permission_prohibit_form
 
class  core_role_permissions_table
 Subclass of core_role_capability_table_base for use on the Permissions page. More...
 
class  core_role_potential_assignees_below_course
 User selector subclass for the list of potential users on the assign roles page, when we are assigning in a context below the course level. More...
 
class  core_role_potential_assignees_course_and_above
 User selector subclass for the list of potential users on the assign roles page, when we are assigning in a context at or above the course level. More...
 
class  core_role_preset
 XML role file manipulation class. More...
 
class  core_role_preset_form
 Role add/reset selection form. More...
 
class  core_role_view_role_definition_table
 

Functions

 core_role_get_potential_user_selector (context $context, $name, $options)
 Get the potential assignees selector for a given context. More...
 

Variables

 $toprow = array()
 
 $toprow [] = new tabobject('manage', new moodle_url('/admin/roles/manage.php'), get_string('manageroles', 'core_role'))
 

Detailed Description

Function Documentation

◆ core_role_get_potential_user_selector()

core_role_get_potential_user_selector ( context  $context,
  $name,
  $options 
)

Get the potential assignees selector for a given context.

If this context is a course context, or inside a course context (module or some blocks) then return a core_role_potential_assignees_below_course object. Otherwise return a core_role_potential_assignees_course_and_above.

Parameters
context$contexta context.
string$namepassed to user selector constructor.
array$optionsto user selector constructor.
Return values
user_selector_basean appropriate user selector.