Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_enrol\hook\before_user_enrolment_updated Class Reference

Public Member Functions

 __construct (public stdClass readonly stdClass $enrolinstance, public stdClass readonly stdClass $userenrolmentinstance, public bool readonly bool $statusmodified, public bool readonly bool $timeendmodified,)
 Constructor for the hook.
 
 get_userid ()
 Get the user id.
 

Constructor & Destructor Documentation

◆ __construct()

core_enrol\hook\before_user_enrolment_updated::__construct ( public stdClass readonly stdClass $enrolinstance,
public stdClass readonly stdClass $userenrolmentinstance,
public bool readonly bool $statusmodified,
public bool readonly bool $timeendmodified )

Constructor for the hook.

Parameters
stdClass$enrolinstanceThe enrol instance.
stdClass$userenrolmentinstanceThe user enrolment instance.
bool$statusmodifiedWhether the status of the enrolment has been modified.
bool$timeendmodifiedWhether the time end of the enrolment has been modified.
Parameters
$enrolinstanceThe enrol instance
$userenrolmentinstanceThe user enrolment instance
$statusmodifiedWhether the status of the enrolment has been modified
$timeendmodifiedWhether the time end of the enrolment has been modified

Member Function Documentation

◆ get_userid()

core_enrol\hook\before_user_enrolment_updated::get_userid ( )

Get the user id.

Return values
int

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