Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions
core_enrol

Files

file  behat_enrol.php
 Enrolment steps definitions.
 
file  bulkchange_forms.php
 This file contains form for bulk changing user enrolments.
 
file  editenrolment_form.php
 Contains the form used to edit enrolments for a user.
 
file  editinstance_form.php
 Adds new instance of enrol_plugin to specified course or edits current instance.
 
file  externallib.php
 External course participation api.
 
file  renderer.php
 This is the main renderer for the enrol section.
 
file  users_forms.php
 Various enrol UI forms.
 

Namespaces

namespace  core_enrol\privacy
  
 

Classes

class  behat_enrol
 
class  core_enrol\privacy\provider
 Privacy Subsystem for core_enrol implementing metadata and plugin providers. More...
 
class  core_enrol_external
 
class  core_enrol_renderer
 This is the core renderer. More...
 
class  core_role_external
 
class  course_enrolment_manager
 This class provides a targeted tied together means of interfacing the enrolment tasks together with a course. More...
 
class  course_enrolment_other_users_table
 Table used for other users. More...
 
class  course_enrolment_table
 Main course enrolment table. More...
 
class  course_enrolment_users_table
 Table control used for enrolled users. More...
 
class  enrol_ajax_exception
 
class  enrol_bulk_enrolment_change_form
 A base class that can be used to easily construct a form for use with bulk operations. More...
 
class  enrol_bulk_enrolment_confirm_form
 A convenience class to allow the quick generation of a confirmation form for a bulk operation. More...
 
class  enrol_bulk_enrolment_operation
 This class is used to manage a bulk operations for enrolment plugins. More...
 
class  enrol_instance_edit_form
 Standard edit form shared by all enrol plugins. More...
 
class  enrol_user_button
 A button that is used to enrol users in a course. More...
 
class  enrol_user_enrolment_form
 
class  enrol_users_addmember_form
 
class  enrol_users_assign_form
 
class  enrol_users_filter_form
 Form that lets users filter the enrolled user list. More...
 
class  user_enrolment_action
 User enrolment action. More...
 

Functions

 get_default_enrol_roles (context $context, $addroleid=null)
 Create a role menu suitable for default role selection in enrol plugins. More...
 

Detailed Description

Function Documentation

◆ get_default_enrol_roles()

get_default_enrol_roles ( context  $context,
  $addroleid = null 
)

Create a role menu suitable for default role selection in enrol plugins.

Parameters
context$context
int$addroleidcurrent or default role - always added to list
Return values
arrayroleid=>localised role name