ILIAS
trunk Revision v12.0_alpha-16-g3e876e53c80
◀ ilDoc Overview
UpdateSteps11.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Search\Setup
;
22
23
use
ilDatabaseUpdateSteps
;
24
use
ilDBConstants
;
25
use
ilDBInterface
;
26
27
class
UpdateSteps11
implements
ilDatabaseUpdateSteps
28
{
29
protected
ilDBInterface
$db
;
30
31
public
function
prepare
(
ilDBInterface
$db
): void
32
{
33
$this->db =
$db
;
34
}
35
39
public
function
step_1
(): void
40
{
41
if
(!$this->db->tableColumnExists(
'usr_search'
,
'copyright_filter'
)) {
42
$this->db->addTableColumn(
43
'usr_search'
,
44
'copyright_filter'
,
45
[
46
'type'
=>
ilDBConstants::T_TEXT
,
47
'default'
=>
null
,
48
'length'
=> 1000
49
]
50
);
51
}
52
}
53
}
ILIAS\Search\Setup\UpdateSteps11
Definition:
UpdateSteps11.php:28
ILIAS\Search\Setup\UpdateSteps11\$db
ilDBInterface $db
Definition:
UpdateSteps11.php:29
ILIAS\Search\Setup\UpdateSteps11\prepare
prepare(ilDBInterface $db)
Definition:
UpdateSteps11.php:31
ILIAS\Search\Setup\UpdateSteps11\step_1
step_1()
Add a column for the copyright filter to usr_search.
Definition:
UpdateSteps11.php:39
ilDBConstants
Class ilDBConstants.
Definition:
class.ilDBConstants.php:27
ilDBConstants\T_TEXT
const T_TEXT
Definition:
class.ilDBConstants.php:56
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
ILIAS\Search\Setup
Definition:
Agent.php:21
components
ILIAS
Search
classes
Setup
UpdateSteps11.php
Generated on Sun Nov 2 2025 23:03:15 for ILIAS by
1.9.4 (using
Doxyfile
)