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");
   123         $tpl->setVariable(
"POST_VAR", $this->
getPostVar());
   125         $tpl->setVariable(
"PROPERTY_VALUE", $this->
getValue());
   139                 'disabled="disabled"'   143         if ($a_mode == 
"toolbar") {
   147             $tpl->setVariable(
"STYLE_PAR", 
'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;');
   152             $tpl->setVariable(
'DESCRIBED_BY_FIELD_ID', $this->
getFieldId());
   180         $data = unserialize($a_data);
   190         $html = $this->
render(
'toolbar');
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)