Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
(no description)
File Size: | 224 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
action_bar:: (5 methods):
__construct()
get_fields_action_bar()
get_view_action_bar()
get_templates_action_bar()
get_presets_action_bar()
Class: action_bar - X-Ref
Class responsible for generating the action bar elements in the database module pages.__construct(int $id, moodle_url $pageurl) X-Ref |
The class constructor. param: int $id The database module id. param: moodle_url $pageurl The URL of the current page. |
get_fields_action_bar(bool $hasfieldselect = false, bool $hassaveaspreset = false,bool $hasexportpreset = false) X-Ref |
Generate the output for the action bar in the field page. return: string The HTML code for the action bar. param: bool $hasfieldselect Whether the field selector element should be rendered. param: bool $hassaveaspreset Whether the save as preset button element should be rendered. param: bool $hasexportpreset Whether the export as preset button element should be rendered. |
get_view_action_bar(bool $hasentries) X-Ref |
Generate the output for the action selector in the view page. return: string The HTML code for the action selector. param: bool $hasentries Whether entries exist. |
get_templates_action_bar() X-Ref |
Generate the output for the action selector in the templates page. return: string The HTML code for the action selector. |
get_presets_action_bar() X-Ref |
Generate the output for the action selector in the presets page. return: string The HTML code for the action selector. |