ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Setup\BlogDBUpdateSteps Class Reference
+ Inheritance diagram for ILIAS\Setup\BlogDBUpdateSteps:
+ Collaboration diagram for ILIAS\Setup\BlogDBUpdateSteps:

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.BlogDBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ILIAS\Setup\BlogDBUpdateSteps::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 30 of file class.BlogDBUpdateSteps.php.

References ILIAS\Setup\BlogDBUpdateSteps\$db.

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

◆ step_1()

ILIAS\Setup\BlogDBUpdateSteps::step_1 ( )

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

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

◆ step_2()

ILIAS\Setup\BlogDBUpdateSteps::step_2 ( )

Definition at line 47 of file class.BlogDBUpdateSteps.php.

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

Field Documentation

◆ $db

ilDBInterface ILIAS\Setup\BlogDBUpdateSteps::$db
protected

Definition at line 28 of file class.BlogDBUpdateSteps.php.

Referenced by ILIAS\Setup\BlogDBUpdateSteps\prepare().


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