ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |
__construct () | |
getHash () | |
@inheritDoc More... | |
getLabel () | |
@inheritDoc More... | |
isNotable () | |
@inheritDoc More... | |
isApplicable (Environment $environment) | |
Get to know whether the objective is applicable.Don't change the environment or cause changes on services in the environment. Just check if this objective needs to be achieved, either currently or at all. In case of doubt whether the objective is applicable or not return true. More... | |
getPreconditions (Environment $environment) | |
@inheritDoc More... | |
achieve (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 Member Functions | |
maybeReplaceResponsiveIcon (string $skin_path) | |
Replaces the responsive header-icon with the common header-icon, if the common icon is different from the ilias icon but the responsive icon is not. More... | |
getFileHash (string $absolute_file_path) | |
Returns the sha1-sum of the given file if it exists. More... | |
Protected Attributes | |
const | RESPONSIVE_LOGO_PATH = '/images/HeaderIconResponsive.svg' |
const | COMMON_LOGO_PATH = '/images/HeaderIcon.svg' |
$delos_responsive_logo_hash | |
$delos_common_logo_hash | |
$delos_path | |
$ilias_path | |
$skins_path | |
Definition at line 12 of file class.ilStyleReplaceResponsiveLogoObjective.php.
ilStyleReplaceResponsiveLogoObjective::__construct | ( | ) |
Definition at line 38 of file class.ilStyleReplaceResponsiveLogoObjective.php.
References getFileHash().
ilStyleReplaceResponsiveLogoObjective::achieve | ( | Environment | $environment | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 94 of file class.ilStyleReplaceResponsiveLogoObjective.php.
References maybeReplaceResponsiveIcon().
|
protected |
Returns the sha1-sum of the given file if it exists.
Definition at line 131 of file class.ilStyleReplaceResponsiveLogoObjective.php.
Referenced by __construct(), and maybeReplaceResponsiveIcon().
ilStyleReplaceResponsiveLogoObjective::getHash | ( | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 53 of file class.ilStyleReplaceResponsiveLogoObjective.php.
ilStyleReplaceResponsiveLogoObjective::getLabel | ( | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 61 of file class.ilStyleReplaceResponsiveLogoObjective.php.
ilStyleReplaceResponsiveLogoObjective::getPreconditions | ( | Environment | $environment | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 86 of file class.ilStyleReplaceResponsiveLogoObjective.php.
ilStyleReplaceResponsiveLogoObjective::isApplicable | ( | Environment | $environment | ) |
Get to know whether the objective is applicable.Don't change the environment or cause changes on services in the environment. Just check if this objective needs to be achieved, either currently or at all. In case of doubt whether the objective is applicable or not return true.
Implements ILIAS\Setup\Objective.
Definition at line 77 of file class.ilStyleReplaceResponsiveLogoObjective.php.
ilStyleReplaceResponsiveLogoObjective::isNotable | ( | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 69 of file class.ilStyleReplaceResponsiveLogoObjective.php.
|
protected |
Replaces the responsive header-icon with the common header-icon, if the common icon is different from the ilias icon but the responsive icon is not.
Definition at line 116 of file class.ilStyleReplaceResponsiveLogoObjective.php.
References COMMON_LOGO_PATH, getFileHash(), and RESPONSIVE_LOGO_PATH.
Referenced by achieve().
|
protected |
Definition at line 24 of file class.ilStyleReplaceResponsiveLogoObjective.php.
|
protected |
Definition at line 28 of file class.ilStyleReplaceResponsiveLogoObjective.php.
|
protected |
Definition at line 20 of file class.ilStyleReplaceResponsiveLogoObjective.php.
|
protected |
Definition at line 32 of file class.ilStyleReplaceResponsiveLogoObjective.php.
|
protected |
Definition at line 36 of file class.ilStyleReplaceResponsiveLogoObjective.php.
|
protected |
Definition at line 15 of file class.ilStyleReplaceResponsiveLogoObjective.php.
Referenced by maybeReplaceResponsiveIcon().
|
protected |
Definition at line 14 of file class.ilStyleReplaceResponsiveLogoObjective.php.
Referenced by maybeReplaceResponsiveIcon().