Directive->getChecked(); if (!is_bool($value)) { $value = null; } return $value; } public function createDirective() { $directive_value = $this->getDirectiveValue(); $default_value = $this->getDefaultValue(); settype($default_value, 'bool'); if ($this->getInConfig() === false) { $directive_value = $default_value; } $this->Label->Text = $this->getLabel(); $this->Directive->setChecked($directive_value); } } ?>