ILIAS
trunk Revision v12.0_alpha-413-g215742c0453
◀ ilDoc Overview
class.ilNewsDBUpdateSteps.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilNewsDBUpdateSteps
implements
ilDatabaseUpdateSteps
22
{
23
protected
ilDBInterface
$db
;
24
25
public
function
prepare
(
ilDBInterface
$db
): void
26
{
27
$this->db =
$db
;
28
}
29
30
public
function
step_1
(): void
31
{
32
if
(!$this->db->indexExistsByFields(
'il_news_item'
, [
'context_obj_type'
])) {
33
$this->db->addIndex(
'il_news_item'
, [
'context_obj_type'
],
'i3'
);
34
}
35
}
36
}
ilNewsDBUpdateSteps
Definition:
class.ilNewsDBUpdateSteps.php:22
ilNewsDBUpdateSteps\step_1
step_1()
Definition:
class.ilNewsDBUpdateSteps.php:30
ilNewsDBUpdateSteps\$db
ilDBInterface $db
Definition:
class.ilNewsDBUpdateSteps.php:23
ilNewsDBUpdateSteps\prepare
prepare(ilDBInterface $db)
Definition:
class.ilNewsDBUpdateSteps.php:25
ilDBInterface
Interface ilDBInterface.
Definition:
interface.ilDBInterface.php:30
ilDatabaseUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilDatabaseUpdateSteps.php:44
components
ILIAS
News
classes
Setup
class.ilNewsDBUpdateSteps.php
Generated on Tue Dec 16 2025 23:02:49 for ILIAS by
1.9.4 (using
Doxyfile
)