ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.BlogDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
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
Definition:
class.Agent.php:21
components
ILIAS
Blog
Setup
class.BlogDBUpdateSteps.php
Generated on Wed Sep 3 2025 23:02:30 for ILIAS by
1.8.13 (using
Doxyfile
)