|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ilLanguagesInstalledAndUpdatedObjective:
Collaboration diagram for ilLanguagesInstalledAndUpdatedObjective:Public Member Functions | |
| __construct (\ilSetupLanguage $il_setup_language, ?InstallLanguage $install_language=null, ?UpdateLanguage $update_language=null) | |
| getHash () | |
| The directory configuration is part of the hash: with a class-only hash Setup could keep the default-directory instance, which refreshes languages without the component-contributed modules. More... | |
| getLabel () | |
| @inheritDoc More... | |
| isNotable () | |
| @inheritDoc More... | |
| getPreconditions (Setup\Environment $environment) | |
| @inheritDoc More... | |
| achieve (Setup\Environment $environment) | |
| @inheritDoc More... | |
| isApplicable (Setup\Environment $environment) | |
| @inheritDoc More... | |
Public Member Functions inherited from ilLanguageObjective | |
| __construct () | |
Protected Member Functions | |
| getInstallLanguages () | |
| Return installed languages. More... | |
| informAboutSkippedInvalidMarkupEntries (Setup\Environment $environment) | |
| Customizing entries with disallowed markup are not applied; the languages are installed regardless. More... | |
| informAboutSkippedDuplicateEntries (Setup\Environment $environment) | |
| A warning only: the languages are installed regardless. More... | |
| informAboutOverlaysOfUnshippedModules (Setup\Environment $environment) | |
| informAboutUnrecordedTakenOverModules (Setup\Environment $environment) | |
| informAboutInvalidMarkupInLocalChanges (Setup\Environment $environment, array $language_keys) | |
| Local changes written before the markup check existed are only reported, never changed: that is the administrator's decision. More... | |
| informAboutMissingClientDataDirectory (Setup\Environment $environment, array $language_keys) | |
| Typically during "setup install", before the client directory exists: the overlay of local changes cannot be written, the web serves the shipped values (the build) until the next "setup update". More... | |
| informAboutUnwritableOverlayDirectories (Setup\Environment $environment, array $language_keys) | |
| Checked before writing. More... | |
| informIfNotRunAsClientDataDirectoryOwner (Setup\Environment $environment, array $language_keys=[]) | |
| Writable for Setup is not enough: files created by another user (typically root) cannot be replaced by the web server later. More... | |
| informAboutUnwrittenOverlays (Setup\Environment $environment, array $language_keys) | |
| useSetupDatabase (Setup\Environment $environment) | |
| Must run before anything is read from ilSetupLanguage, so that the language list comes from the Setup database. More... | |
| useSetupClientDataDir (Setup\Environment $environment) | |
| Taken from the Setup environment, which knows it before ilias.ini.php is written; otherwise ilSetupLanguage falls back to ilias.ini.php. More... | |
| inform (Setup\Environment $environment, string $message) | |
| installLanguages (array $language_keys) | |
| Installs missing languages and refreshes installed ones on every run, so that changed language files take effect. More... | |
Protected Attributes | |
| ilSetupLanguage | $il_setup_language |
| InstallLanguage | $install_language |
| UpdateLanguage | $update_language |
Private Attributes | |
| array | $install_languages = null |
Definition at line 29 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
| ilLanguagesInstalledAndUpdatedObjective::__construct | ( | \ilSetupLanguage | $il_setup_language, |
| ?InstallLanguage | $install_language = null, |
||
| ?UpdateLanguage | $update_language = null |
||
| ) |
| InstallLanguage | null | $install_language | null only for callers constructed deep inside the Setup tree (plugin objectives); a Setup-only instance is then built here instead of reading $GLOBALS['DIC'] |
| UpdateLanguage | null | $update_language | see $install_language |
Definition at line 42 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References $il_setup_language, $install_language, and $update_language.
| ilLanguagesInstalledAndUpdatedObjective::achieve | ( | Setup\Environment | $environment | ) |
@inheritDoc
Definition at line 123 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References getInstallLanguages(), inform(), informAboutInvalidMarkupInLocalChanges(), informAboutMissingClientDataDirectory(), informAboutOverlaysOfUnshippedModules(), informAboutSkippedDuplicateEntries(), informAboutSkippedInvalidMarkupEntries(), informAboutUnrecordedTakenOverModules(), informAboutUnwritableOverlayDirectories(), informAboutUnwrittenOverlays(), installLanguages(), useSetupClientDataDir(), and useSetupDatabase().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjective::getHash | ( | ) |
The directory configuration is part of the hash: with a class-only hash Setup could keep the default-directory instance, which refreshes languages without the component-contributed modules.
Definition at line 56 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
|
protected |
Return installed languages.
Definition at line 78 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
Referenced by achieve(), and isApplicable().
Here is the caller graph for this function:| ilLanguagesInstalledAndUpdatedObjective::getLabel | ( | ) |
@inheritDoc
Definition at line 86 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
| ilLanguagesInstalledAndUpdatedObjective::getPreconditions | ( | Setup\Environment | $environment | ) |
@inheritDoc
Definition at line 106 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
|
protected |
Definition at line 464 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References $message.
Referenced by achieve(), informAboutInvalidMarkupInLocalChanges(), informAboutMissingClientDataDirectory(), informAboutOverlaysOfUnshippedModules(), informAboutSkippedDuplicateEntries(), informAboutSkippedInvalidMarkupEntries(), informAboutUnrecordedTakenOverModules(), informAboutUnwritableOverlayDirectories(), informAboutUnwrittenOverlays(), and informIfNotRunAsClientDataDirectoryOwner().
Here is the caller graph for this function:
|
protected |
Local changes written before the markup check existed are only reported, never changed: that is the administrator's decision.
| list<string> | $language_keys |
Definition at line 231 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References $module, $policy, and inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Typically during "setup install", before the client directory exists: the overlay of local changes cannot be written, the web serves the shipped values (the build) until the next "setup update".
| list<string> | $language_keys |
Definition at line 293 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 199 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
A warning only: the languages are installed regardless.
Definition at line 185 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Customizing entries with disallowed markup are not applied; the languages are installed regardless.
Definition at line 170 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 212 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Checked before writing.
Does not abort: the database is written regardless, the files are repaired by the next run with sufficient permissions.
| list<string> | $language_keys |
Definition at line 318 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform(), and informIfNotRunAsClientDataDirectoryOwner().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| list<string> | $language_keys languages whose PO/MO overlay could not be written |
Definition at line 405 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Writable for Setup is not enough: files created by another user (typically root) cannot be replaced by the web server later.
The owner of the client data directory counts as web server user.
| list<string> | $language_keys |
Definition at line 341 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References inform().
Referenced by informAboutUnwritableOverlayDirectories().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Installs missing languages and refreshes installed ones on every run, so that changed language files take effect.
Both Activities get the full list and ignore keys that do not apply to them; UpdateLanguage also runs on just-installed keys, which is harmless.
An instance with only the default directories never refreshes: that would delete the lng_data rows of component-contributed modules.
| list<string> | $language_keys |
Definition at line 487 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
Referenced by achieve().
Here is the caller graph for this function:| ilLanguagesInstalledAndUpdatedObjective::isApplicable | ( | Setup\Environment | $environment | ) |
@inheritDoc
Definition at line 422 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References getInstallLanguages(), and useSetupDatabase().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjective::isNotable | ( | ) |
@inheritDoc
Definition at line 98 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
|
protected |
Taken from the Setup environment, which knows it before ilias.ini.php is written; otherwise ilSetupLanguage falls back to ilias.ini.php.
Definition at line 447 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
References $client_id, and ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\fromDataDirAndClientId().
Referenced by achieve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Must run before anything is read from ilSetupLanguage, so that the language list comes from the Setup database.
Definition at line 436 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
Referenced by achieve(), and isApplicable().
Here is the caller graph for this function:
|
protected |
Definition at line 31 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
Referenced by __construct().
|
private |
Definition at line 35 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
|
protected |
Definition at line 33 of file class.ilLanguagesInstalledAndUpdatedObjective.php.
Referenced by __construct().