Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Namespaces | |
namespace | enrol_imsenterprise\privacy |
| |
namespace | enrol_imsenterprise\task |
| |
Classes | |
class | enrol_imsenterprise\privacy\provider |
Privacy Subsystem for enrol_imsenterprise implementing null_provider. More... | |
class | enrol_imsenterprise\task\cron_task |
Simple task to run the IMS Enterprise enrolment cron. More... | |
class | enrol_imsenterprise_plugin |
IMS Enterprise file enrolment plugin. More... | |
class | imsenterprise_courses |
Mapping between Moodle course attributes and IMS enterprise group description tags. More... | |
class | imsenterprise_roles |
Class for dealing with role mappings in IMS Enterprise. More... | |
Functions | |
can_delete_instance ($instance) | |
Is it possible to delete enrol instance via standard UI? | |
can_hide_show_instance ($instance) | |
Is it possible to hide/show enrol instance via standard UI? | |
static | decode_timeframe ($string) |
Process the INNER contents of a <timeframe> tag, to return beginning/ending dates. | |
enrol_imsenterprise_allow_group_member_remove ($itemid, $groupid, $userid) | |
Called whenever anybody tries (from the normal interface) to remove a group member which is registered as being created by this component. | |
load_course_mappings () | |
Load the name mappings (from the config), so we can easily refer to how an IMS-E course properties corresponds to a Moodle course properties. | |
load_role_mappings () | |
Load the role mappings (from the config), so we can easily refer to how an IMS-E role corresponds to a Moodle role. | |
log_line ($string) | |
Store logging information. | |
process_membership_tag ($tagcontents) | |
Process the membership tag. | |
process_properties_tag ($tagcontents) | |
Process the properties tag. | |
xmldb_enrol_imsenterprise_install () | |
Post installation procedure. | |
xmldb_enrol_imsenterprise_upgrade ($oldversion) | |
Performs upgrade of the database structure and data. | |
Variables | |
$capabilities | |
$messageproviders | |
$plugin = 2024041600 | |
$tasks | |
$plugin | component = 'enrol_imsenterprise' |
$plugin | version = 2024042200 |
can_delete_instance | ( | $instance | ) |
Is it possible to delete enrol instance via standard UI?
object | $instance |
bool |
can_hide_show_instance | ( | $instance | ) |
Is it possible to hide/show enrol instance via standard UI?
stdClass | $instance |
bool |
|
staticprotected |
Process the INNER contents of a <timeframe> tag, to return beginning/ending dates.
string | $string | tag to decode. |
stdClass | beginning and/or ending is returned, in unix time, zero indicating not specified. |
enrol_imsenterprise_allow_group_member_remove | ( | $itemid, | |
$groupid, | |||
$userid ) |
Called whenever anybody tries (from the normal interface) to remove a group member which is registered as being created by this component.
(Not called when deleting an entire group or course at once.)
int | $itemid | Item ID that was stored in the group_members entry |
int | $groupid | Group ID |
int | $userid | User ID being removed from group |
bool | True if the remove is permitted, false to give an error |
|
protected |
Store logging information.
This does two things: uses the mtrace() function to print info to screen/STDOUT, and also writes log to a text file if a path has been specified.
string | $string | Text to write (newline will be added automatically) |
|
protected |
Process the membership tag.
This defines whether the specified Moodle users should be added/removed as teachers/students.
string | $tagcontents | The raw contents of the XML element |
|
protected |
Process the properties tag.
The only data from this element that is relevant is whether a <target> is specified.
string | $tagcontents | The raw contents of the XML element |
xmldb_enrol_imsenterprise_upgrade | ( | $oldversion | ) |
Performs upgrade of the database structure and data.
int | $oldversion | the version we are upgrading from |
bool | true |
$capabilities |
$messageproviders |
$tasks |