Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_enrol\hook\after_user_enrolled Class Reference

Public Member Functions

 __construct (public stdClass readonly stdClass $enrolinstance, public stdClass readonly stdClass $userenrolmentinstance,)
 Constructor for the hook.
 
 get_enrolinstance ()
 Get the enrol instance.
 
 get_userid ()
 Get the user id.
 

Constructor & Destructor Documentation

◆ __construct()

core_enrol\hook\after_user_enrolled::__construct ( public stdClass readonly stdClass $enrolinstance,
public stdClass readonly stdClass $userenrolmentinstance )

Constructor for the hook.

Parameters
stdClass$enrolinstanceThe enrol instance.
stdClass$userenrolmentinstanceThe user enrolment instance.
Parameters
$enrolinstanceThe enrol instance
$userenrolmentinstanceThe user enrolment instance

Member Function Documentation

◆ get_enrolinstance()

core_enrol\hook\after_user_enrolled::get_enrolinstance ( )

Get the enrol instance.

Return values
stdClassThe enrol instance.

◆ get_userid()

core_enrol\hook\after_user_enrolled::get_userid ( )

Get the user id.

Return values
int

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