|
Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
|
Public Member Functions | |
| __construct (string $buttoncontent, choicelist $choices, array $definition=[]) | |
| Constructor. | |
| add_button_id (string $value) | |
| Set the button element id. | |
| add_extra (string $attribute, string $value) | |
| Add extra extras to the sticky footer element. | |
| 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. | |
| 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_button (string $buttoncontent, ?string $buttonclasses=null) | |
| Set the button contents. | |
| set_button_classes (string $buttonclasses) | |
| Add extra classes to trigger butotn. | |
| set_choice (choicelist $choices) | |
| Set the dialog contents. | |
| set_classes (string $classes) | |
| Add extra classes to the component. | |
| set_content (string $dialogcontent) | |
| Set the dialog contents. | |
| set_dialog_width (string $width) | |
| Set the dialog width. | |
| set_disabled (bool $disabled) | |
| Set the dropdown disabled attribute. | |
| set_position (string $position) | |
| Set the dropdown position. | |
Public Attributes | |
| const | POSITION |
| Dropdown dialog positions. | |
| const | WIDTH |
| Dropdown dialog positions. | |
Protected Attributes | |
| string | $buttonclasses = '' |
| trigger button CSS classes. | |
| bool | $buttoncontent = true |
| if the footer should auto enable or not. | |
| choicelist | $choices = null |
| content of dialog. | |
| string | $classes = '' |
| component CSS classes. | |
| string | $dialogcontent = '' |
| content of dialog. | |
| bool | $disabled = false |
| if the element is disabled. | |
| string | $dropdownposition = self::POSITION['start'] |
| the dropdown position. | |
| string | $dropdownwidth = self::WIDTH['default'] |
| dropdown preferred width. | |
| array | $extras = [] |
| extra HTML attributes (attribute => value). | |
| core\output\local\dropdown\status::__construct | ( | string | $buttoncontent, |
| choicelist | $choices, | ||
| array | $definition = [] ) |
Constructor.
The definition object could contain the following keys:
| string | $buttoncontent | the button content |
| choicelist | $choices | the choice object |
| array | $definition | an optional array of the element definition |
|
inherited |
Set the button element id.
| string | $value | the value |
|
inherited |
Add extra extras to the sticky footer element.
| string | $attribute | the extra attribute |
| string | $value | the value |
| core\output\local\dropdown\status::export_for_template | ( | \renderer_base | $output | ) |
Export this data so it can be used as the context for a mustache template (core/inplace_editable).
| renderer_base | $output | typically, the renderer that's calling this function |
| array | data context for a mustache template |
Reimplemented from core\output\local\dropdown\dialog.
|
inherited |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
| renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
| stdClass|array |
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\task_indicator, core\output\url_select, core_calendar\output\humandate, core_calendar\output\humantimeperiod, core_course\output\actionbar\group_selector_button, core_course\output\actionbar\group_selector_dropdown_form, core_course\output\actionbar\initials_dropdown_form, core_course\output\actionbar\user_selector_button, core_course\output\activity_completion, core_course\output\activity_dates, core_course\output\activity_icon, core_course\output\activitychooserbutton, core_course\output\completion_action_bar, core_courseformat\output\local\content\basecontrolmenu, core_courseformat\output\local\content\cm\controlmenu, core_courseformat\output\local\content\cm, core_courseformat\output\local\content\section, core_courseformat\output\local\overview\activityname, core_courseformat\output\local\overview\overviewtable, core_grades\output\penalty_indicator, core_question\output\add_bank_list, core_question\output\qbank_action_menu, core_question\output\question_bank_filter_ui, core_question\output\question_bank_list, core_question\output\question_category_selector, core_question\output\question_version_info, core_question\output\question_version_selection, core_question\output\switch_question_bank, core_question\output\view_banks, core_reportbuilder\output\custom_report, core_reportbuilder\output\dynamictabs\access, core_reportbuilder\output\dynamictabs\audience, core_reportbuilder\output\dynamictabs\editor, core_reportbuilder\output\dynamictabs\schedules, core_reportbuilder\output\report_action, and core_reportbuilder\output\system_report.
| core\output\local\dropdown\status::get_template_name | ( | \renderer_base | $renderer | ) |
Get the name of the template to use for this templatable.
| renderer_base | $renderer | The renderer requesting the template name |
| string | the template name |
Reimplemented from core\output\local\dropdown\dialog.
|
inherited |
Get the name of the template to use for this templatable.
| renderer_base | $renderer | The renderer requesting the template name |
| string |
Implemented in core\output\choicelist, core\output\comboboxsearch, core_course\output\actionbar\group_selector_button, core_course\output\actionbar\group_selector_dropdown_form, core_course\output\actionbar\user_selector_button, core_courseformat\output\local\overview\activityname, and core_courseformat\output\local\overview\overviewtable.
|
inherited |
Set the button contents.
| string | $buttoncontent | |
| string | null | $buttonclasses | the button classes |
|
inherited |
Add extra classes to trigger butotn.
| string | $buttonclasses | the extra classes |
| core\output\local\dropdown\status::set_choice | ( | choicelist | $choices | ) |
Set the dialog contents.
| choicelist | $choices |
|
inherited |
Add extra classes to the component.
| string | $classes | the extra classes |
|
inherited |
Set the dialog contents.
| string | $dialogcontent |
|
inherited |
Set the dialog width.
| string | $width |
|
inherited |
Set the dropdown disabled attribute.
| bool | $disabled | the disabled value |
|
inherited |
Set the dropdown position.
| string | $position | the position |
|
inherited |
Dropdown dialog positions.
|
inherited |
Dropdown dialog positions.