|
| | add_control_after (array $controls, string $aftername, string $newkey, mixed $newcontrol) |
| | Adds a new control item after a given control item.
|
| |
| | format_controls (array $controls) |
| | Format control array into an action_menu.
|
| |
|
|
url url | $baseurl |
| | The base URL for the course or the section.
|
| |
|
stdClass stdClass | $course |
| | the course instance
|
| |
|
context_course | $coursecontext |
| | the course context
|
| |
|
course_format | $format |
| | the course format class
|
| |
|
action_menu | $menu |
| | the action menu
|
| |
|
string | $menuid |
| | the menu ID
|
| |
|
cm_info | $mod |
| | the course module class
|
| |
|
section_info | $section |
| | the course section class
|
| |
◆ __construct()
| core_courseformat\output\local\content\basecontrolmenu::__construct |
( |
course_format | $format, |
|
|
section_info | $section, |
|
|
?cm_info | $mod = null, |
|
|
string | $menuid = '' ) |
Constructor.
- Parameters
-
| course_format | $format | the course format |
| section_info | $section | the section info |
| cm_info | null | $mod | the module info |
| string | $menuid | the ID value for the menu |
◆ add_control_after()
| core_courseformat\output\local\content\basecontrolmenu::add_control_after |
( |
array | $controls, |
|
|
string | $aftername, |
|
|
string | $newkey, |
|
|
mixed | $newcontrol ) |
|
protected |
Adds a new control item after a given control item.
If the control item is not found, the new control item is added at the beginning.
- Parameters
-
| array | $controls | array of edit control items |
| string | $aftername | name of the control item after which the new control item will be added |
| string | $newkey | key of the new control item |
| mixed | $newcontrol | new control item to be added (anything compatible with an action menu or null) |
◆ export_for_template()
| core_courseformat\output\local\content\basecontrolmenu::export_for_template |
( |
renderer_base | $output | ) |
|
◆ format_controls()
| core_courseformat\output\local\content\basecontrolmenu::format_controls |
( |
array | $controls | ) |
|
|
protected |
Format control array into an action_menu.
- Parameters
-
| renderer_base | $output | typically, the renderer that's calling this function |
- Return values
-
| action_menu|null | the action menu |
◆ get_action_menu()
| core_courseformat\output\local\content\basecontrolmenu::get_action_menu |
( |
renderer_base | $output | ) |
|
◆ get_default_action_menu()
| core_courseformat\output\local\content\basecontrolmenu::get_default_action_menu |
( |
renderer_base | $output | ) |
|
◆ get_template_name()
| core\output\named_templatable::get_template_name |
( |
renderer_base | $renderer | ) |
|
|
inherited |
◆ section_control_items()
| core_courseformat\output\local\content\basecontrolmenu::section_control_items |
( |
| ) |
|
◆ set_baseurl()
| core_courseformat\output\local\content\basecontrolmenu::set_baseurl |
( |
url | $baseurl | ) |
|
Change the default base URL to return after each action.
- Parameters
-
The documentation for this class was generated from the following file:
- course/format/classes/output/local/content/basecontrolmenu.php