ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Test_ilDatabaseUpdateSteps Class Reference
+ Inheritance diagram for Test_ilDatabaseUpdateSteps:
+ Collaboration diagram for Test_ilDatabaseUpdateSteps:

Public Member Functions

 step_1 (\ilDBInterface $db)
 
 step_4 (\ilDBInterface $db)
 
 step_2 (\ilDBInterface $db)
 
 getAdditionalPreconditionsForStep (int $num)
 
 _getSteps ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 __construct (Objective $base)
 
 getAdditionalPreconditionsForStep (int $num)
 Get preconditions for steps. More...
 
 getHash ()
 The hash for the objective is calculated over the classname and the steps that are contained. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 
 getPreconditions (Environment $environment)
 
 achieve (Environment $environment)
 
 isApplicable (Environment $environment)
 
 getStep (int $num, int $finished=0)
 Get a database update step. More...
 
 getLatestStepNum ()
 Get the number of latest database step in this class. More...
 

Data Fields

 $called = []
 
 $step_2_precondition = null
 
- Data Fields inherited from ilDatabaseUpdateSteps
const STEP_METHOD_PREFIX = "step_"
 

Additional Inherited Members

- Protected Member Functions inherited from ilDatabaseUpdateSteps
 getSteps ()
 Get the numbers of the steps in this class. More...
 
- Protected Attributes inherited from ilDatabaseUpdateSteps
 $steps = null
 
 $base
 

Detailed Description

Definition at line 11 of file ilDatabaseUpdateStepsTest.php.

Member Function Documentation

◆ _getSteps()

Test_ilDatabaseUpdateSteps::_getSteps ( )

Definition at line 50 of file ilDatabaseUpdateStepsTest.php.

References ilDatabaseUpdateSteps\getSteps().

50  : array
51  {
52  return $this->getSteps();
53  }
getSteps()
Get the numbers of the steps in this class.
+ Here is the call graph for this function:

◆ getAdditionalPreconditionsForStep()

Test_ilDatabaseUpdateSteps::getAdditionalPreconditionsForStep ( int  $num)

Definition at line 42 of file ilDatabaseUpdateStepsTest.php.

References $step_2_precondition.

42  : array
43  {
44  if ($this->step_2_precondition && $num === 2) {
46  }
47  return [];
48  }

◆ step_1()

Test_ilDatabaseUpdateSteps::step_1 ( \ilDBInterface  $db)

Definition at line 17 of file ilDatabaseUpdateStepsTest.php.

References ilDBInterface\connect().

18  {
19  $this->called[] = 1;
20  // Call some function on the interface to check if this step
21  // is really called.
22  $db->connect();
23  }
+ Here is the call graph for this function:

◆ step_2()

Test_ilDatabaseUpdateSteps::step_2 ( \ilDBInterface  $db)

Definition at line 34 of file ilDatabaseUpdateStepsTest.php.

References ilDBInterface\connect().

35  {
36  $this->called[] = 2;
37  // Call some function on the interface to check if this step
38  // is really called.
39  $db->connect();
40  }
+ Here is the call graph for this function:

◆ step_4()

Test_ilDatabaseUpdateSteps::step_4 ( \ilDBInterface  $db)

Definition at line 26 of file ilDatabaseUpdateStepsTest.php.

References ilDBInterface\connect().

27  {
28  $this->called[] = 4;
29  // Call some function on the interface to check if this step
30  // is really called.
31  $db->connect();
32  }
+ Here is the call graph for this function:

Field Documentation

◆ $called

Test_ilDatabaseUpdateSteps::$called = []

Definition at line 13 of file ilDatabaseUpdateStepsTest.php.

◆ $step_2_precondition

Test_ilDatabaseUpdateSteps::$step_2_precondition = null

Definition at line 15 of file ilDatabaseUpdateStepsTest.php.

Referenced by getAdditionalPreconditionsForStep().


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