ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMDUpdateSteps10 Class Reference
+ Inheritance diagram for ilMDUpdateSteps10:
+ Collaboration diagram for ilMDUpdateSteps10:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 Add a new table for exposed OER metadata. More...
 
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 21 of file class.ilMDUpdateSteps10.php.

Member Function Documentation

◆ prepare()

ilMDUpdateSteps10::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 25 of file class.ilMDUpdateSteps10.php.

25 : void
26 {
27 $this->db = $db;
28 }

References $db.

◆ step_1()

ilMDUpdateSteps10::step_1 ( )

Add a new table for exposed OER metadata.

Definition at line 33 of file class.ilMDUpdateSteps10.php.

33 : void
34 {
35 if (!$this->db->tableExists('il_meta_oer_exposed')) {
36 $this->db->createTable(
37 'il_meta_oer_exposed',
38 [
39 'obj_id' => [
41 'notnull' => true,
42 'length' => 4
43 ],
44 'identifier' => [
45 'type' => ilDBConstants::T_TEXT,
46 'notnull' => true,
47 'length' => 64
48 ],
49 'datestamp' => [
51 'notnull' => true,
52 'length' => 8
53 ],
54 'metadata' => [
55 'type' => ilDBConstants::T_CLOB,
56 'notnull' => true
57 ]
58 ]
59 );
60 $this->db->addPrimaryKey('il_meta_oer_exposed', ['obj_id']);
61 }
62 }

References ilDBConstants\T_CLOB, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.

Field Documentation

◆ $db

ilDBInterface ilMDUpdateSteps10::$db
protected

Definition at line 23 of file class.ilMDUpdateSteps10.php.

Referenced by prepare().


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