|
| | __construct (manager $manager, int $totalcount, int $currentpage, int $nowperpage, moodle_url $baseurl, template $parser) |
| | The class constructor.
|
| |
| | add_attribute (string $atribute, string $value) |
| | Add extra attributes to the sticky footer element.
|
| |
| | add_classes (string $stickyclasses) |
| | Add extra classes to the sticky footer.
|
| |
| | export_for_template (\renderer_base $output) |
| | Export this data so it can be used as the context for a mustache template (core/inplace_editable).
|
| |
| | export_for_template (renderer_base $output) |
| | Function to export the renderer data in a format that is suitable for a mustache template.
|
| |
| | export_for_template (renderer_base $output) |
| | Export this data so it can be used as the context for a mustache template (core/inplace_editable).
|
| |
| | get_footer_output (renderer_base $output) |
| | Generate the pre-rendered footer content.
|
| |
| | get_template_name (renderer_base $renderer) |
| | Get the name of the template to use for this templatable.
|
| |
| | get_template_name (\renderer_base $renderer) |
| | Get the name of the template to use for this templatable.
|
| |
| | set_auto_enable (bool $autoenable) |
| | Set the auto enable value.
|
| |
| | set_content (string $stickycontent) |
| | Set the footer contents.
|
| |
|
|
array | $attributes = [] |
| | extra HTML attributes (attribute => value).
|
| |
|
bool | $autoenable = true |
| | if the footer should auto enable or not.
|
| |
| string | $stickyclasses = 'justify-content-end' |
| | extra CSS classes.
|
| |
|
string | $stickycontent = '' |
| | content of the sticky footer.
|
| |
◆ __construct()
| mod_data\output\view_footer::__construct |
( |
manager | $manager, |
|
|
int | $totalcount, |
|
|
int | $currentpage, |
|
|
int | $nowperpage, |
|
|
moodle_url | $baseurl, |
|
|
template | $parser ) |
The class constructor.
- Parameters
-
| manager | $manager | the activity manager |
| int | $totalcount | the total records count |
| int | $currentpage | the current page |
| int | $nowperpage | the number of elements per page |
| moodle_url | $baseurl | the page base url |
| template | $parser | the current template name |
◆ add_attribute()
| core\output\sticky_footer::add_attribute |
( |
string | $atribute, |
|
|
string | $value ) |
|
inherited |
Add extra attributes to the sticky footer element.
- Parameters
-
| string | $atribute | the attribute |
| string | $value | the value |
◆ add_classes()
| core\output\sticky_footer::add_classes |
( |
string | $stickyclasses | ) |
|
|
inherited |
Add extra classes to the sticky footer.
- Parameters
-
| string | $stickyclasses | the extra classes |
◆ export_for_template() [1/3]
| core\output\sticky_footer::export_for_template |
( |
\renderer_base | $output | ) |
|
|
inherited |
Export this data so it can be used as the context for a mustache template (core/inplace_editable).
- Parameters
-
| renderer_base | $output | typically, the renderer that's calling this function |
- Return values
-
| array | data context for a mustache template |
◆ export_for_template() [2/3]
| core\output\templatable::export_for_template |
( |
renderer_base | $output | ) |
|
|
inherited |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
- No complex types - only stdClass, array, int, string, float, bool
- Any additional info that is required for the template is pre-calculated (e.g. capability checks).
- Parameters
-
| renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implemented in core\output\action_menu, core\output\actions\component_action, core\output\activity_header, core\output\checkbox_toggleall, core\output\choicelist, core\output\chooser, core\output\chooser_item, core\output\chooser_section, core\output\comboboxsearch, core\output\context_header, core\output\custom_menu_item, core\output\dynamic_tabs, core\output\help_icon, core\output\initials_bar, core\output\paging_bar, core\output\pix_icon, core\output\pix_icon_font, core\output\progress_bar, core\output\select_menu, core\output\single_select, core\output\tabobject, core\output\tabtree, core\output\url_select, core_course\output\actionbar\group_selector_button, core_course\output\actionbar\group_selector_dropdown_form, and core_course\output\actionbar\user_selector_button.
◆ export_for_template() [3/3]
| mod_data\output\view_footer::export_for_template |
( |
renderer_base | $output | ) |
|
Export this data so it can be used as the context for a mustache template (core/inplace_editable).
- Parameters
-
| renderer_base | $output | typically, the renderer that's calling this function |
- Return values
-
| array | data context for a mustache template |
◆ get_footer_output()
| mod_data\output\view_footer::get_footer_output |
( |
renderer_base | $output | ) |
|
Generate the pre-rendered footer content.
- Parameters
-
| renderer_base | $output | The renderer to be used to render the action bar elements. |
- Return values
-
| string | the rendered content |
◆ get_template_name() [1/2]
| core\output\named_templatable::get_template_name |
( |
renderer_base | $renderer | ) |
|
|
inherited |
◆ get_template_name() [2/2]
| core\output\sticky_footer::get_template_name |
( |
\renderer_base | $renderer | ) |
|
|
inherited |
Get the name of the template to use for this templatable.
- Parameters
-
| renderer_base | $renderer | The renderer requesting the template name |
- Return values
-
◆ set_auto_enable()
| core\output\sticky_footer::set_auto_enable |
( |
bool | $autoenable | ) |
|
|
inherited |
Set the auto enable value.
- Parameters
-
| bool | $autoenable | the footer content |
◆ set_content()
| core\output\sticky_footer::set_content |
( |
string | $stickycontent | ) |
|
|
inherited |
Set the footer contents.
- Parameters
-
| string | $stickycontent | the footer content |
◆ $stickyclasses
| string core\output\sticky_footer::$stickyclasses = 'justify-content-end' |
|
protectedinherited |
extra CSS classes.
By default, elements are justified to the end.
The documentation for this class was generated from the following file:
- mod/data/classes/output/view_footer.php