◆ getDefaultAmountOfStepsPerRun()
| ilGlossaryCollectionMigration::getDefaultAmountOfStepsPerRun |
( |
| ) |
|
◆ getLabel()
| ilGlossaryCollectionMigration::getLabel |
( |
| ) |
|
◆ getPreconditions()
| ilGlossaryCollectionMigration::getPreconditions |
( |
Environment |
$environment | ) |
|
◆ getRemainingAmountOfSteps()
| ilGlossaryCollectionMigration::getRemainingAmountOfSteps |
( |
| ) |
|
Definition at line 97 of file class.ilGlossaryCollectionMigration.php.
99 $set = $this->db->query(
100 "SELECT glossary.virtual FROM glossary " .
101 " WHERE glossary.virtual = 'level' OR glossary.virtual = 'subtree'" 103 if ($rec = $this->db->fetchAssoc($set)) {
◆ log()
| ilGlossaryCollectionMigration::log |
( |
string |
$str | ) |
|
|
protected |
◆ prepare()
| ilGlossaryCollectionMigration::prepare |
( |
Environment |
$environment | ) |
|
◆ step()
| ilGlossaryCollectionMigration::step |
( |
Environment |
$environment | ) |
|
Definition at line 57 of file class.ilGlossaryCollectionMigration.php.
References ILIAS\Repository\int(), and log().
59 $set = $this->db->query(
60 "SELECT glossary.id AS glossary_id, glossary.virtual, glossary_term.id AS term_id, glossary_term.glo_id " .
61 " FROM glossary LEFT JOIN glossary_term ON glossary.id = glossary_term.glo_id " .
62 " WHERE glossary.virtual = 'level' OR glossary.virtual = 'subtree' " .
63 " ORDER BY glossary.id" 66 while ($rec = $this->db->fetchAssoc($set)) {
67 $glo_id = (
int) $rec[
"glossary_id"];
68 $term_id = (
int) $rec[
"term_id"];
69 if ($glo_id === $tmp_id) {
73 $this->db->manipulate(
74 "UPDATE glossary SET " .
75 " glossary.virtual = " . $this->db->quote(
"none",
"text") .
76 " WHERE glossary.id = " . $this->db->quote($glo_id,
"integer")
78 $this->
log(
"Convert glossary with id " . $glo_id .
" into Standard Glossary.");
80 $this->db->manipulate(
81 "UPDATE glossary SET " .
82 " glossary.virtual = " . $this->db->quote(
"coll",
"text") .
83 " WHERE glossary.id = " . $this->db->quote($glo_id,
"integer")
85 $this->
log(
"Convert glossary with id " . $glo_id .
" into Collection Glossary.");
◆ $db
The documentation for this class was generated from the following file: