◆ __construct()
mod_data\output\action_bar::__construct |
( |
int |
$id, |
|
|
moodle_url |
$pageurl |
|
) |
| |
The class constructor.
- Parameters
-
int | $id | The database module id. |
moodle_url | $pageurl | The URL of the current page. |
◆ get_fields_action_bar()
mod_data\output\action_bar::get_fields_action_bar |
( |
bool |
$hasfieldselect = false , |
|
|
bool |
$hassaveaspreset = false , |
|
|
bool |
$hasexportpreset = false |
|
) |
| |
Generate the output for the action bar in the field page.
- Parameters
-
bool | $hasfieldselect | Whether the field selector element should be rendered. |
bool | $hassaveaspreset | Whether the save as preset button element should be rendered. |
bool | $hasexportpreset | Whether the export as preset button element should be rendered. |
- Return values
-
string | The HTML code for the action bar. |
◆ get_presets_action_bar()
mod_data\output\action_bar::get_presets_action_bar |
( |
| ) |
|
Generate the output for the action selector in the presets page.
- Return values
-
string | The HTML code for the action selector. |
◆ get_templates_action_bar()
mod_data\output\action_bar::get_templates_action_bar |
( |
| ) |
|
Generate the output for the action selector in the templates page.
- Return values
-
string | The HTML code for the action selector. |
◆ get_view_action_bar()
mod_data\output\action_bar::get_view_action_bar |
( |
bool |
$hasentries | ) |
|
Generate the output for the action selector in the view page.
- Parameters
-
bool | $hasentries | Whether entries exist. |
- Return values
-
string | The HTML code for the action selector. |
The documentation for this class was generated from the following file: