19 declare(strict_types=1);
116 $this->buttons[] = $button;
129 $this->parameters[] = $hidden_input_gui;
139 $tpl =
new ilTemplate(
'tpl.tst_player_confirmation_modal.html',
true,
true,
'Modules/Test');
142 $tpl->setCurrentBlock(
'checkbox');
145 $tpl->parseCurrentBlock();
149 $tpl->setCurrentBlock(
'hidden_inputs');
150 $tpl->setVariable(
'HIDDEN_INPUT', $parameter->getToolbarHTML());
151 $tpl->parseCurrentBlock();
155 $tpl->setCurrentBlock(
'buttons');
156 if ($button instanceof
StandardButton || $button instanceof PrimaryButton) {
157 $button_str = $this->ui_renderer->render($button);
159 $button_str = $button->render();
162 $tpl->setVariable(
'BUTTON', $button_str);
163 $tpl->parseCurrentBlock();
177 return $modal->getHTML();
__construct(protected UIRenderer $ui_renderer)
getConfirmationCheckboxLabel()
setModalId(string $modal_id)
setHeaderText(string $header_text)
getConfirmationCheckboxName()
setConfirmationText(string $confirmation_text)
setConfirmationCheckboxName(string $confirmation_checkbox_name)
string $confirmation_checkbox_label
addParameter(ilHiddenInputGUI $hidden_input_gui)
isConfirmationCheckboxRequired()
setConfirmationCheckboxLabel(string $confirmation_checkbox_label)
string $confirmation_checkbox_name
string $confirmation_text
addButton(StandardButton|PrimaryButton|ilLinkButton $button)