Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: