Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_role

Namespaces

namespace  core_role\privacy
  
 
namespace  core_role\reportbuilder\datasource
  
 
namespace  core_role\reportbuilder\local\entities
  
 

Classes

class  core_role\privacy\provider
 Privacy provider for core_role. More...
 
class  core_role\reportbuilder\datasource\roles
 
class  core_role\reportbuilder\local\entities\role
 
class  core_role\reportbuilder\local\entities\role_assignment
 
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_external
 Role external functions. 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.
 

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.