Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
mod_lesson\output\override_action_menu Class Reference

Output the override action menu for this activity. More...

Inheritance diagram for mod_lesson\output\override_action_menu:

Public Member Functions

 __construct (int $cmid, moodle_url $currenturl, bool $canoverride=false)
 Constructor for this object.
 
 export_for_template (\renderer_base $output)
 Data for use with a template.
 

Protected Member Functions

 create_override_select_menu ()
 Creates a select menu for the override options.
 

Protected Attributes

bool $canoverride
 Whether can add user or group override (depending on the override type).
 
int $cmid
 The course module ID.
 
moodle_url $currenturl
 The current url for the page.
 

Detailed Description

Output the override action menu for this activity.

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

Constructor & Destructor Documentation

◆ __construct()

mod_lesson\output\override_action_menu::__construct ( int $cmid,
moodle_url $currenturl,
bool $canoverride = false )

Constructor for this object.

Parameters
int$cmidThe course module ID.
moodle_url$currenturlThe current url for the page.
bool$canoverrideWhether can add user or group override (depending on the override type).

Member Function Documentation

◆ create_override_select_menu()

mod_lesson\output\override_action_menu::create_override_select_menu ( )
protected

Creates a select menu for the override options.

Return values
url_selectThe override select.

◆ export_for_template()

mod_lesson\output\override_action_menu::export_for_template ( \renderer_base $output)

Data for use with a template.

Parameters
renderer_base$outputrenderer base output.
Return values
arraySaid data.

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