50 get_class($this) .
"::" . $this->label
83 if (($this->condition)($environment)) {
89 $admin_interaction->inform($this->message);
93 "An external condition was not met: {$this->label}"
An exception for terminatinating execution or to throw for unit testing.
A condition that can't be met by ILIAS itself needs to be met by some external means.
getHash()
Get a hash for this objective.The hash of two objectives must be the same, if they are the same objec...
getPreconditions(Setup\Environment $environment)
getLabel()
Get a label that describes this objective.
__construct(string $label, callable $condition, string $message=null)
isNotable()
Get to know if this is an interesting objective for a human.
achieve(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
@inheritDoc
Signals that some goal won't be achievable by actions of the system ever.
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
const RESOURCE_ADMIN_INTERACTION
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...