42 parent::__construct();
52 $this->
setTitle($this->lng->txt(
'tos_tos_settings'));
55 $status = new \ilCheckboxInputGUI($this->lng->txt(
'tos_status_enable'),
'tos_status');
57 $status->setChecked((
bool) $this->tos->getStatus());
58 $status->setInfo($this->lng->txt(
'tos_status_desc'));
59 $status->setDisabled(!$this->isEditable);
62 if ($this->isEditable) {
72 $this->check_input_called = $status;
80 return strlen($this->translatedError);
101 if (!(
int) $this->
getInput(
'tos_status')) {
102 $this->tos->saveStatus((
bool) $this->
getInput(
'tos_status'));
108 $this->tos->saveStatus((
bool) $this->
getInput(
'tos_status'));
112 if (!$this->tos->getStatus()) {
113 $this->translatedError = $this->lng->txt(
'tos_no_documents_exist_cant_save');
118 $this->tos->saveStatus((
bool) $this->
getInput(
'tos_status'));
static where($where, $operator=null)
Class ilObjTermsOfService.