32 throw new \InvalidArgumentException(
47 return hash(
"sha256", self::class .
"::" . $this->path);
57 return "Create directory '{$this->path}'";
75 if (file_exists($this->path)) {
88 mkdir($this->path, $this->permissions);
90 if (!is_dir($this->path)) {
92 "Could not create directory '{$this->path}'"
103 return !file_exists($this->path);
An exception for terminatinating execution or to throw for unit testing.
const DEFAULT_DIRECTORY_PERMISSIONS
getPreconditions(Setup\Environment $environment)
@inheritdocs
getHash()
Uses hashed Path.
getLabel()
Defaults to "Build $this->getArtifactPath()".
isNotable()
Defaults to 'true'.
isApplicable(Setup\Environment $environment)
@inheritDoc
achieve(Setup\Environment $environment)
@inheritdocs
__construct(string $path, int $permissions=self::DEFAULT_DIRECTORY_PERMISSIONS)
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.
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...