ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
prepare (\ilDBInterface $db) | |
Prepare the execution of the steps. More... | |
step_1 () | |
Add a new table to store deactivated standard vocabularies. More... | |
step_2 () | |
Add a new table to store controlled vocabularies. More... | |
step_3 () | |
Add a new table to store values and labels of controlled vocabularies. More... | |
step_4 () | |
Add columns for the sources of all vocab values. More... | |
step_5 () | |
Make more space in the columns of vocab values to hold controlled values. More... | |
step_6 () | |
Normalize existing vocab values. More... | |
step_7 () | |
Fill source columns with the default value. More... | |
step_8 () | |
Protected Member Functions | |
getAllVocabSlots () | |
getTableForVocabSlot (SlotIdentifier $slot) | |
getValueColumnNameForVocabSlot (SlotIdentifier $slot) | |
getSourceColumnNameForVocabSlot (SlotIdentifier $slot) | |
getTranslationsForVocabSlot (SlotIdentifier $slot) | |
Protected Attributes | |
ilDBInterface | $db |
Definition at line 24 of file class.ilMDControlledVocabsUpdateSteps.php.
|
protected |
Definition at line 236 of file class.ilMDControlledVocabsUpdateSteps.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().
Referenced by step_4(), step_5(), step_6(), step_7(), and step_8().
|
protected |
Definition at line 314 of file class.ilMDControlledVocabsUpdateSteps.php.
Referenced by step_4(), step_7(), and step_8().
|
protected |
|
protected |
Definition at line 340 of file class.ilMDControlledVocabsUpdateSteps.php.
Referenced by step_6(), and step_7().
|
protected |
Definition at line 288 of file class.ilMDControlledVocabsUpdateSteps.php.
Referenced by step_5(), step_6(), and step_7().
ilMDControlledVocabsUpdateSteps::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 28 of file class.ilMDControlledVocabsUpdateSteps.php.
References $db.
ilMDControlledVocabsUpdateSteps::step_1 | ( | ) |
Add a new table to store deactivated standard vocabularies.
Definition at line 36 of file class.ilMDControlledVocabsUpdateSteps.php.
References ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_2 | ( | ) |
Add a new table to store controlled vocabularies.
Definition at line 56 of file class.ilMDControlledVocabsUpdateSteps.php.
References ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_3 | ( | ) |
Add a new table to store values and labels of controlled vocabularies.
Definition at line 99 of file class.ilMDControlledVocabsUpdateSteps.php.
References ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_4 | ( | ) |
Add columns for the sources of all vocab values.
Definition at line 129 of file class.ilMDControlledVocabsUpdateSteps.php.
References getAllVocabSlots(), getSourceColumnNameForVocabSlot(), getTableForVocabSlot(), and ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_5 | ( | ) |
Make more space in the columns of vocab values to hold controlled values.
Definition at line 153 of file class.ilMDControlledVocabsUpdateSteps.php.
References getAllVocabSlots(), getTableForVocabSlot(), getValueColumnNameForVocabSlot(), and ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_6 | ( | ) |
Normalize existing vocab values.
Definition at line 176 of file class.ilMDControlledVocabsUpdateSteps.php.
References getAllVocabSlots(), getTableForVocabSlot(), getTranslationsForVocabSlot(), getValueColumnNameForVocabSlot(), and ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_7 | ( | ) |
Fill source columns with the default value.
Definition at line 198 of file class.ilMDControlledVocabsUpdateSteps.php.
References getAllVocabSlots(), getSourceColumnNameForVocabSlot(), getTableForVocabSlot(), getTranslationsForVocabSlot(), getValueColumnNameForVocabSlot(), and ilDBConstants\T_TEXT.
ilMDControlledVocabsUpdateSteps::step_8 | ( | ) |
Definition at line 215 of file class.ilMDControlledVocabsUpdateSteps.php.
References getAllVocabSlots(), getSourceColumnNameForVocabSlot(), and getTableForVocabSlot().
|
protected |
Definition at line 26 of file class.ilMDControlledVocabsUpdateSteps.php.
Referenced by prepare().