ILIAS  release_8 Revision v8.23
ilWebResourceDropValidSteps Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWebResourceDropValidSteps:
+ Collaboration diagram for ilWebResourceDropValidSteps:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 
 step_2 ()
 
 step_3 ()
 
 step_4 ()
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning These update steps drop the columns 'disable_check', 'last_check' and 'valid' from the table 'webr_items', since the validation of weblinks is abandoned.

Author
Tim Schmitz schmi.nosp@m.tz@l.nosp@m.eifos.nosp@m..de

Definition at line 27 of file class.ilWebResourceDropValidSteps.php.

Member Function Documentation

◆ prepare()

ilWebResourceDropValidSteps::prepare ( \ilDBInterface  $db)

Prepare the execution of the steps.

Do not use anything from the globals or the DIC inside your steps, only use the instance of the database provided here.

Implements ilDatabaseUpdateSteps.

Definition at line 31 of file class.ilWebResourceDropValidSteps.php.

References $db.

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

◆ step_1()

ilWebResourceDropValidSteps::step_1 ( )

Definition at line 35 of file class.ilWebResourceDropValidSteps.php.

35  : void
36  {
37  //Drops the column 'disable_check' from webr_items
38  if ($this->db->tableColumnExists('webr_items', 'disable_check')) {
39  $this->db->dropTableColumn('webr_items', 'disable_check');
40  }
41  }

◆ step_2()

ilWebResourceDropValidSteps::step_2 ( )

Definition at line 43 of file class.ilWebResourceDropValidSteps.php.

43  : void
44  {
45  //Drops the column 'last_check' from webr_items
46  if ($this->db->tableColumnExists('webr_items', 'last_check')) {
47  $this->db->dropTableColumn('webr_items', 'last_check');
48  }
49  }

◆ step_3()

ilWebResourceDropValidSteps::step_3 ( )

Definition at line 51 of file class.ilWebResourceDropValidSteps.php.

51  : void
52  {
53  //Drops the column 'valid' from webr_items
54  if ($this->db->tableColumnExists('webr_items', 'valid')) {
55  $this->db->dropTableColumn('webr_items', 'valid');
56  }
57  }

◆ step_4()

ilWebResourceDropValidSteps::step_4 ( )

Definition at line 59 of file class.ilWebResourceDropValidSteps.php.

59  : void
60  {
61  // Removes entries from table webr_params where 'value' is 2.
62  // This removes all link session_id link parameters
63  if ($this->db->tableExists('webr_params')) {
64  $this->db->manipulate("DELETE FROM webr_params WHERE value = " . $this->db->quote(2, 'integer'));
65  }
66  }

Field Documentation

◆ $db

ilDBInterface ilWebResourceDropValidSteps::$db
protected

Definition at line 29 of file class.ilWebResourceDropValidSteps.php.

Referenced by prepare().


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