Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
user_enrolment_action Class Reference

User enrolment action. More...

Inheritance diagram for user_enrolment_action:
renderable

Public Member Functions

 __construct (pix_icon $icon, $title, $url, array $attributes=null)
 Constructor.
 
 get_attributes ()
 Returns the attributes to use for this action.
 
 get_icon ()
 Returns the icon for this action.
 
 get_title ()
 Returns the title for this action.
 
 get_url ()
 Returns the URL for this action.
 

Protected Attributes

array $attributes = array()
 An array of HTML attributes.
 
pix_icon $icon
 The icon to display for the action.
 
string $title
 The title for the action.
 
moodle_url $url
 The URL to the action.
 

Detailed Description

User enrolment action.

This class is used to manage a renderable ue action such as editing an user enrolment or deleting a user enrolment.

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

Constructor & Destructor Documentation

◆ __construct()

user_enrolment_action::__construct ( pix_icon $icon,
$title,
$url,
array $attributes = null )

Constructor.

Parameters
pix_icon$icon
string$title
moodle_url$url
array$attributes

Member Function Documentation

◆ get_attributes()

user_enrolment_action::get_attributes ( )

Returns the attributes to use for this action.

Return values
array

◆ get_icon()

user_enrolment_action::get_icon ( )

Returns the icon for this action.

Return values
pix_icon

◆ get_title()

user_enrolment_action::get_title ( )

Returns the title for this action.

Return values
string

◆ get_url()

user_enrolment_action::get_url ( )

Returns the URL for this action.

Return values
moodle_url

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