◆ __construct()
core_courseformat\sectiondelegate::__construct |
( |
protected section_info | $sectioninfo | ) |
|
◆ get_delegate_class_name()
static core_courseformat\sectiondelegate::get_delegate_class_name |
( |
string | $pluginname | ) |
|
|
staticprotected |
Return the delgate class name of a plugin, if any.
- Parameters
-
- Return values
-
string|null | the delegate class name or null if not found. |
◆ get_section_action_menu()
core_courseformat\sectiondelegate::get_section_action_menu |
( |
course_format | $format, |
|
|
controlmenu | $controlmenu, |
|
|
renderer_base | $output ) |
Allow delegate plugin to modify the available section menu.
- Parameters
-
course_format | $format | The course format instance. |
controlmenu | $controlmenu | The control menu instance. |
renderer_base | $output | The renderer instance. |
- Return values
-
action_menu|null | The new action menu with the list of edit control items or null if no action menu is available. |
◆ has_delegate_class()
static core_courseformat\sectiondelegate::has_delegate_class |
( |
string | $pluginname | ) |
|
|
static |
Check if a plugin has a delegate class.
- Parameters
-
- Return values
-
◆ instance()
static core_courseformat\sectiondelegate::instance |
( |
section_info | $sectioninfo | ) |
|
|
static |
Get the section info instance if available.
- Parameters
-
- Return values
-
◆ preprocess_section_name()
core_courseformat\sectiondelegate::preprocess_section_name |
( |
section_info | $section, |
|
|
?string | $newname ) |
Define the section final name.
This method can process the section name and return the validated new name.
- Parameters
-
section_info | $section | |
string | null | $newname | the new name value to store in the database |
- Return values
-
string|null | the name value to store in the database |
◆ put_section_state_extra_updates()
Add extra state updates when put or create a section.
This method is called every time the backend sends a delegated section state update to the UI.
- Parameters
-
section_info | $section | the affected section. |
stateupdates | $updates | the state updates object to notify the UI. |
The documentation for this class was generated from the following file:
- course/format/classes/sectiondelegate.php