ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.BlogSettingsGUI.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Blog\ReadingTime
;
20
24
class
BlogSettingsGUI
25
{
29
protected
$blog_id
;
30
34
protected
$lng
;
35
39
protected
$manager
;
40
41
public
function
__construct
(
int
$blog_id
)
42
{
44
global
$DIC
;
45
46
$this->manager =
new
ReadingTimeManager
();
47
$this->
lng
= $DIC->language();
48
$this->blog_id =
$blog_id
;
49
}
50
51
public
function
addSettingToForm
(\
ilPropertyFormGUI
$form): void
52
{
53
if
($this->manager->isGloballyActivated()) {
54
$cb = new \ilCheckboxInputGUI($this->
lng
->txt(
"blog_est_reading_time"
),
"est_reading_time"
);
55
$cb->setChecked($this->manager->isActivated($this->blog_id));
56
$form->
addItem
($cb);
57
}
58
}
59
60
public
function
addValueToArray
(array $values): array
61
{
62
$values[
"est_reading_time"
] = $this->manager->isActivated($this->blog_id);
63
return
$values;
64
}
65
66
public
function
saveSettingFromForm
(\
ilPropertyFormGUI
$form): void
67
{
68
if
($this->manager->isGloballyActivated()) {
69
$this->manager->activate(
70
$this->blog_id,
71
(
bool
) $form->
getInput
(
"est_reading_time"
)
72
);
73
}
74
}
75
}
ILIAS\Blog\ReadingTime\BlogSettingsGUI\$manager
$manager
Definition:
class.BlogSettingsGUI.php:39
ILIAS\Blog\ReadingTime\BlogSettingsGUI\saveSettingFromForm
saveSettingFromForm(\ilPropertyFormGUI $form)
Definition:
class.BlogSettingsGUI.php:66
ILIAS\Blog\ReadingTime\BlogSettingsGUI\addSettingToForm
addSettingToForm(\ilPropertyFormGUI $form)
Definition:
class.BlogSettingsGUI.php:51
ILIAS\Blog\ReadingTime\BlogSettingsGUI\addValueToArray
addValueToArray(array $values)
Definition:
class.BlogSettingsGUI.php:60
ilPropertyFormGUI\addItem
addItem($a_item)
Definition:
class.ilPropertyFormGUI.php:213
ilPropertyFormGUI\getInput
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
Definition:
class.ilPropertyFormGUI.php:448
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\Blog\ReadingTime\BlogSettingsGUI\$lng
$lng
Definition:
class.BlogSettingsGUI.php:34
ILIAS\Blog\ReadingTime\BlogSettingsGUI
Definition:
class.BlogSettingsGUI.php:24
ILIAS\__construct
__construct()
Constructor setup ILIAS global object public.
Definition:
class.ilias.php:62
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:56
ILIAS\Blog\ReadingTime\BlogSettingsGUI\$blog_id
$blog_id
Definition:
class.BlogSettingsGUI.php:29
ILIAS\Blog\ReadingTime\ReadingTimeManager
Definition:
class.ReadingTimeManager.php:24
ilPropertyFormGUI
ILIAS\Blog\ReadingTime
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.BlogSettingsGUI.php:19
Modules
Blog
ReadingTime
class.BlogSettingsGUI.php
Generated on Thu Apr 3 2025 22:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)