Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
imsenterprise_roles Class Reference

Class for dealing with role mappings in IMS Enterprise. More...

Public Member Functions

 __construct ()
 Constructor.
 
 determine_default_rolemapping ($imscode)
 This function is only used when first setting up the plugin, to decide which role assignments to recommend by default. More...
 
 get_imsroles ()
 Returns the mapped roles. More...
 

Detailed Description

Class for dealing with role mappings in IMS Enterprise.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ determine_default_rolemapping()

imsenterprise_roles::determine_default_rolemapping (   $imscode)

This function is only used when first setting up the plugin, to decide which role assignments to recommend by default.

For example, IMS role '01' is 'Learner', so may map to 'student' in Moodle.

Parameters
string$imscode

◆ get_imsroles()

imsenterprise_roles::get_imsroles ( )

Returns the mapped roles.

Return values
arrayof IMS roles indexed by IMS code.

The documentation for this class was generated from the following file: