19 declare(strict_types=1);
43 return "Update QuestionList Settings";
48 return self::DEFAULT_AMOUNT_OF_STEPS;
69 $result = $this->db->manipulate(
70 'UPDATE tst_tests SET show_questionlist = 1 WHERE usr_pass_overview_mode > 0 AND show_questionlist IS NULL LIMIT 1' 74 $this->db->manipulate(
75 'UPDATE tst_tests SET show_questionlist = 0 WHERE usr_pass_overview_mode = 0 AND show_questionlist IS NULL LIMIT 1' 82 $result = $this->db->query(
83 "SELECT count(*) as cnt FROM tst_tests WHERE show_questionlist is NULL" 85 $row = $this->db->fetchAssoc($result);
87 return (
int) $row[
'cnt'] ?? 0;
prepare(Environment $environment)
Prepare the migration by means of some environment.
A migration is a potentially long lasting operation that can be broken into discrete steps...
getDefaultAmountOfStepsPerRun()
Tell the default amount of steps to be executed for one run of the migration.
getPreconditions(Environment $environment)
Objectives the migration depend on.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
getRemainingAmountOfSteps()
Count up how many "things" need to be migrated.
const DEFAULT_AMOUNT_OF_STEPS
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
step(Environment $environment)