ILIAS  release_8 Revision v8.24
ilDataCollectionObjective Class Reference
+ Inheritance diagram for ilDataCollectionObjective:
+ Collaboration diagram for ilDataCollectionObjective:

Public Member Functions

 __construct (ilDatabaseUpdateSteps $steps)
 
 getPreconditions (Environment $environment)
 @inheritdocs More...
 
 achieve (Environment $environment)
 @inheritdocs More...
 
- Public Member Functions inherited from ilDatabaseUpdateStepsExecutedObjective
 __construct (ilDatabaseUpdateSteps $steps)
 
 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 ()
 @inheritdocs More...
 
 getPreconditions (Environment $environment)
 @inheritdocs More...
 
 achieve (Environment $environment)
 @inheritdocs More...
 
 isApplicable (Environment $environment)
 @inheritDoc More...
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 

Protected Attributes

ilDatabaseUpdateSteps $steps
 
- Protected Attributes inherited from ilDatabaseUpdateStepsExecutedObjective
ilDatabaseUpdateSteps $steps
 
string $steps_class
 

Additional Inherited Members

- Data Fields inherited from ilDatabaseUpdateStepsExecutedObjective
const STEP_METHOD_PREFIX = "step_"
 
- Protected Member Functions inherited from ilDatabaseUpdateStepsExecutedObjective
 throwStepNotFinishedException (int $started, int $finished)
 

Detailed Description

Definition at line 24 of file class.ilDataCollectionObjective.php.

Constructor & Destructor Documentation

◆ __construct()

ilDataCollectionObjective::__construct ( ilDatabaseUpdateSteps  $steps)

Reimplemented from ilDatabaseUpdateStepsExecutedObjective.

Definition at line 29 of file class.ilDataCollectionObjective.php.

30 {
33 } else {
34 throw new InvalidArgumentException('$steps must be instance of ilDataCollectionDBUpdateSteps');
35 }
36 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $steps, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ achieve()

ilDataCollectionObjective::achieve ( Environment  $environment)

@inheritdocs

Reimplemented from ilDatabaseUpdateStepsExecutedObjective.

Definition at line 49 of file class.ilDataCollectionObjective.php.

50 {
51 global $DIC;
52 $DIC = new Container();
53 $DIC['lng'] = new ilSetupLanguage('en');
54 $DIC['ilDB'] = $environment->getResource(Environment::RESOURCE_DATABASE);
55 $DIC['component.factory'] = $environment->getResource(Environment::RESOURCE_COMPONENT_FACTORY);
56 $DIC['component.repository'] = $environment->getResource(Environment::RESOURCE_COMPONENT_REPOSITORY);
57 return parent::achieve($environment);
58 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.

References $DIC, and ILIAS\Setup\Environment\getResource().

+ Here is the call graph for this function:

◆ getPreconditions()

ilDataCollectionObjective::getPreconditions ( Environment  $environment)

@inheritdocs

Reimplemented from ilDatabaseUpdateStepsExecutedObjective.

Definition at line 38 of file class.ilDataCollectionObjective.php.

Field Documentation

◆ $steps

ilDatabaseUpdateSteps ilDataCollectionObjective::$steps
protected

Definition at line 27 of file class.ilDataCollectionObjective.php.

Referenced by __construct().


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