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.BlogDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Blog\Setup
;
22
26
class
BlogDBUpdateSteps
implements
\ilDatabaseUpdateSteps
27
{
28
protected \ilDBInterface
$db
;
29
30
public
function
prepare
(\
ilDBInterface
$db): void
31
{
32
$this->db =
$db
;
33
}
34
35
public
function
step_1
(): void
36
{
37
if
(!$this->db->tableColumnExists(
'il_blog'
,
'act_est_reading_time'
)) {
38
$this->db->addTableColumn(
'il_blog'
,
'act_est_reading_time'
, array(
39
'type'
=>
'integer'
,
40
'notnull'
=>
true
,
41
'length'
=> 1,
42
'default'
=> 0
43
));
44
}
45
}
46
47
public
function
step_2
(): void
48
{
49
if
(!$this->db->tableColumnExists(
'page_object'
,
'est_reading_time'
)) {
50
$this->db->addTableColumn(
'page_object'
,
'est_reading_time'
, array(
51
'type'
=>
'integer'
,
52
'notnull'
=>
true
,
53
'length'
=> 4,
54
'default'
=> 0
55
));
56
}
57
}
58
}
ILIAS\Blog\Setup\BlogDBUpdateSteps
Definition:
class.BlogDBUpdateSteps.php:26
ILIAS\Blog\Setup\BlogDBUpdateSteps\prepare
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Definition:
class.BlogDBUpdateSteps.php:30
ILIAS\Blog\Setup\BlogDBUpdateSteps\$db
ilDBInterface $db
Definition:
class.BlogDBUpdateSteps.php:28
ilDatabaseUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilDatabaseUpdateSteps.php:43
ILIAS\Blog\Setup\BlogDBUpdateSteps\step_2
step_2()
Definition:
class.BlogDBUpdateSteps.php:47
ILIAS\Blog\Setup\BlogDBUpdateSteps\step_1
step_1()
Definition:
class.BlogDBUpdateSteps.php:35
ilDBInterface
ILIAS\Blog\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.Agent.php:21
Modules
Blog
Setup
class.BlogDBUpdateSteps.php
Generated on Tue Apr 1 2025 22:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)