19 declare(strict_types=1);
35 string $a_postvar =
"" 39 $this->
lng = $DIC->language();
44 public function setValue(
string $a_value): void
46 $this->value = $a_value;
56 $this->checked = $a_checked;
66 $this->optiontitle = $a_optiontitle;
76 $checked = $a_values[$this->
getPostVar()] ??
false;
79 $item->setValueByArray($a_values);
85 $this->additional_attributes = $a_attrs;
119 public function render($a_mode =
''): string
121 $tpl =
new ilTemplate(
"tpl.prop_checkbox.html",
true,
true,
"Services/Form");
139 'disabled="disabled"' 143 if ($a_mode ==
"toolbar") {
147 $tpl->setVariable(
"STYLE_PAR",
'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;');
180 $data = unserialize($a_data);
190 $html = $this->
render(
'toolbar');
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl