19 declare(strict_types=1);
31 protected \ilLanguage
$lng;
39 $this->
lng = $DIC->language();
45 if ($this->manager->isGloballyActivated()) {
46 $cb = new \ilCheckboxInputGUI($this->
lng->txt(
"blog_est_reading_time"),
"est_reading_time");
47 $cb->setChecked($this->manager->isActivated($this->blog_id));
54 if ($this->manager->isGloballyActivated()) {
57 $this->
lng->txt(
"blog_est_reading_time"),
59 $this->manager->isActivated($this->blog_id)
67 $values[
"est_reading_time"] = $this->manager->isActivated($this->blog_id);
73 if ($this->manager->isGloballyActivated()) {
74 $this->manager->activate(
76 (
bool) $form->
getInput(
"est_reading_time")
83 if ($this->manager->isGloballyActivated()) {
84 $this->manager->activate(
86 (
bool) $form->getData(
"est_reading_time")
__construct(int $blog_id)
saveSettingFromForm(\ilPropertyFormGUI $form)
addSettingToForm(\ilPropertyFormGUI $form)
addValueToArray(array $values)
addSettingToFormAdapter(FormAdapterGUI $form)
saveSettingFromFormAdapter(FormAdapterGUI $form)
ReadingTimeManager $manager