ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\Search\Setup\UpdateSteps11 Class Reference
+ Inheritance diagram for ILIAS\Search\Setup\UpdateSteps11:
+ Collaboration diagram for ILIAS\Search\Setup\UpdateSteps11:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 Add a column for the copyright filter to usr_search. More...
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 27 of file UpdateSteps11.php.

Member Function Documentation

◆ prepare()

ILIAS\Search\Setup\UpdateSteps11::prepare ( ilDBInterface  $db)

Definition at line 31 of file UpdateSteps11.php.

31 : void
32 {
33 $this->db = $db;
34 }

References ILIAS\Search\Setup\UpdateSteps11\$db.

◆ step_1()

ILIAS\Search\Setup\UpdateSteps11::step_1 ( )

Add a column for the copyright filter to usr_search.

Definition at line 39 of file UpdateSteps11.php.

39 : 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 }

References ilDBConstants\T_TEXT.

Field Documentation

◆ $db

ilDBInterface ILIAS\Search\Setup\UpdateSteps11::$db
protected

Definition at line 29 of file UpdateSteps11.php.

Referenced by ILIAS\Search\Setup\UpdateSteps11\prepare().


The documentation for this class was generated from the following file: