Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
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. More...
 
 get_attributes ()
 Returns the attributes to use for this action. More...
 
 get_icon ()
 Returns the icon for this action. More...
 
 get_title ()
 Returns the title for this action. More...
 
 get_url ()
 Returns the URL for this action. More...
 

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: