ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This is an objective to build some artifact. More...
Public Member Functions | |
getArtifactName () | |
Get the filename where the builder wants to put its artifact. More... | |
build () | |
Build the artifact based. More... | |
buildIn (Setup\Environment $env) | |
Builds an artifact in some given Environment. More... | |
getPreconditions (Setup\Environment $environment) | |
Defaults to no preconditions. More... | |
getHash () | |
Uses hashed Path. More... | |
getLabel () | |
Defaults to 'Build ' . More... | |
isNotable () | |
Defaults to 'true'. More... | |
achieve (Setup\Environment $environment) | |
Builds the artifact and puts it in its location. More... | |
isApplicable (Setup\Environment $environment) | |
![]() | |
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... | |
Static Public Member Functions | |
static | PATH () |
Protected Member Functions | |
getPath () | |
makeDirectoryFor (string $path) | |
Protected Attributes | |
const | ARTIFACTS = __DIR__ . "/../../../../../artifacts" |
Private Attributes | |
const | COMPONENTS_DIRECTORY = "components" |
This is an objective to build some artifact.
therefore: if you are currently implementing it, please contact Richard Klees or Fabian Schmid
Definition at line 33 of file BuildArtifactObjective.php.
ILIAS\Setup\Artifact\BuildArtifactObjective::achieve | ( | Setup\Environment | $environment | ) |
Builds the artifact and puts it in its location.
@inheritdocs
Definition at line 123 of file BuildArtifactObjective.php.
References $path, ILIAS\Setup\Artifact\BuildArtifactObjective\buildIn(), ILIAS\Setup\Artifact\BuildArtifactObjective\getPath(), and ILIAS\Setup\Artifact\BuildArtifactObjective\makeDirectoryFor().
|
abstract |
Build the artifact based.
If you want to use the environment reimplement buildIn
instead.
Reimplemented in ILIAS\Export\Setup\BuildExportOptionsMapObjective, ilGlobalScreenBuildProviderMapObjective, ILIAS\LegalDocuments\Setup\ConsumerObjective, PushNotificationObjective, ILIAS\StaticURL\ArtifactObjective, ilCtrlBaseClassArtifactObjective, ilCtrlStructureArtifactObjective, ILIAS\User\Profile\ChangeListeners\CollectListenersObjective, ILIAS\User\Profile\Fields\Custom\CollectTypesObjective, and ILIAS\User\Settings\CollectSettingsObjective.
Referenced by ILIAS\Setup\Artifact\BuildArtifactObjective\buildIn().
ILIAS\Setup\Artifact\BuildArtifactObjective::buildIn | ( | Setup\Environment | $env | ) |
Builds an artifact in some given Environment.
Defaults to just dropping the environment and using build
.
If you want to reimplement this, you most probably also want to reimplement getPreconditions
to prepare the environment properly.
Definition at line 68 of file BuildArtifactObjective.php.
References ILIAS\Setup\Artifact\BuildArtifactObjective\build().
Referenced by ILIAS\Setup\Artifact\BuildArtifactObjective\achieve().
|
abstract |
Get the filename where the builder wants to put its artifact.
This is understood to be a path relative to the ILIAS root directory.
Reimplemented in ILIAS\Export\Setup\BuildExportOptionsMapObjective, ilGlobalScreenBuildProviderMapObjective, ILIAS\ILIASObject\Properties\ObjectTypeSpecificProperties\ArtifactObjective, ILIAS\LegalDocuments\Setup\ConsumerObjective, PushNotificationObjective, ilResourceStorageFlavourArtifact, ILIAS\StaticURL\ArtifactObjective, ilCtrlBaseClassArtifactObjective, ilCtrlSecurityArtifactObjective, ilCtrlStructureArtifactObjective, ILIAS\User\Profile\ChangeListeners\CollectListenersObjective, ILIAS\User\Profile\Fields\Custom\CollectTypesObjective, and ILIAS\User\Settings\CollectSettingsObjective.
Referenced by ILIAS\Setup\Artifact\BuildArtifactObjective\getHash(), and ILIAS\Setup\Artifact\BuildArtifactObjective\getLabel().
ILIAS\Setup\Artifact\BuildArtifactObjective::getHash | ( | ) |
Uses hashed Path.
@inheritdocs
Implements ILIAS\Setup\Objective.
Definition at line 88 of file BuildArtifactObjective.php.
References ILIAS\Setup\Artifact\BuildArtifactObjective\getArtifactName().
ILIAS\Setup\Artifact\BuildArtifactObjective::getLabel | ( | ) |
Defaults to 'Build ' .
$this->getArtifactName().' Artifact'.
@inheritdocs
Implements ILIAS\Setup\Objective.
Definition at line 98 of file BuildArtifactObjective.php.
References ILIAS\Setup\Artifact\BuildArtifactObjective\getArtifactName().
|
protected |
Definition at line 113 of file BuildArtifactObjective.php.
Referenced by ILIAS\Setup\Artifact\BuildArtifactObjective\achieve().
ILIAS\Setup\Artifact\BuildArtifactObjective::getPreconditions | ( | Setup\Environment | $environment | ) |
Defaults to no preconditions.
@inheritdocs
Definition at line 78 of file BuildArtifactObjective.php.
ILIAS\Setup\Artifact\BuildArtifactObjective::isApplicable | ( | Setup\Environment | $environment | ) |
Definition at line 136 of file BuildArtifactObjective.php.
ILIAS\Setup\Artifact\BuildArtifactObjective::isNotable | ( | ) |
Defaults to 'true'.
@inheritdocs
Implements ILIAS\Setup\Objective.
Definition at line 108 of file BuildArtifactObjective.php.
|
protected |
Definition at line 141 of file BuildArtifactObjective.php.
References $path.
Referenced by ILIAS\Setup\Artifact\BuildArtifactObjective\achieve().
|
staticfinal |
Definition at line 40 of file BuildArtifactObjective.php.
Referenced by ILIAS\LegalDocuments\Internal\__construct(), ilGSProviderFactory\__construct(), InitResourceStorage\init(), ILIAS\StaticURL\Init\init(), InitCtrlService\init(), ILIAS\ILIASObject\LocalDIC\init(), ILIAS\User\LocalDIC\init(), ILIAS\FileDelivery\Setup\DeliveryMethodObjective\isApplicable(), and ILIAS\Notifications\UserSettings\PushNotification\isAvailable().
|
protected |
Definition at line 35 of file BuildArtifactObjective.php.
|
private |
Definition at line 45 of file BuildArtifactObjective.php.