|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ILIAS\Language\Activities\LanguageActivity:
Collaboration diagram for ILIAS\Language\Activities\LanguageActivity:Public Member Functions | |
| __construct (private readonly ?RBAC $rbac, private readonly LanguageFolder $language_folder, protected readonly DataFactory $data=new DataFactory(),) | |
| getType () | |
| isAllowedToPerform (int $usr_id, mixed $parameters) | |
| This shall check if the given user is allowed to perform the activity based on business rules of this component. More... | |
| maybePerformAs (InputFactory $input_factory, int $usr_id, array $raw_parameters) | |
| Grinds the $raw_parameters through the input description, checks if the users is allowed to perform the action as requested and, if so, then attempts to performs it. More... | |
Public Member Functions inherited from ILIAS\Component\Activities\ActivityImpl | |
| getName () | |
| Shall return classname of the Activity, wrapped in Name. More... | |
Public Member Functions inherited from ILIAS\Component\Activities\Activity | |
| getName () | |
| Shall return classname of the Activity, wrapped in Name. More... | |
| getType () | |
| getDescription () | |
| getInputDescription (FieldFactory $f) | |
| getOutputDescription (Description\Factory $f) | |
| isAllowedToPerform (int $usr_id, mixed $parameters) | |
| This shall check if the given user is allowed to perform the activity based on business rules of this component. More... | |
| perform (mixed $parameters) | |
| This shall perform the activity. More... | |
| maybePerformAs (InputFactory $input_factory, int $usr_id, array $raw_parameters) | |
| Grinds the $raw_parameters through the input description, checks if the users is allowed to perform the action as requested and, if so, then attempts to performs it. More... | |
Protected Member Functions | |
| overlayWriteFailedOutputField (Description\Factory $f) | |
| The database was written, but the PO/MO overlay of a module was not: callers must not report plain success. More... | |
| invalidMarkupCustomizingOutputField (Description\Factory $f) | |
| duplicateCustomizingOutputField (Description\Factory $f) | |
| duplicateCustomizingEntries (array $skipped, array $language_keys) | |
| invalidMarkupCustomizingEntries (array $skipped, array $language_keys) | |
| normalizeParameters (array $grind_result) | |
Private Member Functions | |
| isKnownUser (int $usr_id) | |
| Never the anonymous user, regardless of its RBAC roles. More... | |
Definition at line 34 of file LanguageActivity.php.
| ILIAS\Language\Activities\LanguageActivity::__construct | ( | private readonly ?RBAC | $rbac, |
| private readonly LanguageFolder | $language_folder, | ||
| protected readonly DataFactory | $data = new DataFactory() |
||
| ) |
| RBAC | null | $rbac | null only for forSetup(); isAllowedToPerform() then throws. |
Definition at line 39 of file LanguageActivity.php.
|
protected |
| array<string,array<string,list<string>>> | $skipped see \ILIAS\Language\Setup\LanguageInstallationManager::getSkippedDuplicateEntries() |
| list<string> | $language_keys |
Definition at line 108 of file LanguageActivity.php.
References ILIAS\Language\ComponentTranslation\DuplicateIdentifierMessage\entry().
Referenced by ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble\duplicateEntries(), ILIAS\Language\Activities\InstallLanguage\perform(), and ILIAS\Language\Activities\UpdateLanguage\perform().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 85 of file LanguageActivity.php.
References Vendor\Package\$f, and $text.
| ILIAS\Language\Activities\LanguageActivity::getType | ( | ) |
Implements ILIAS\Component\Activities\Activity.
Definition at line 46 of file LanguageActivity.php.
|
protected |
| array<string,array<string,list<string>>> | $skipped see \ILIAS\Language\Setup\LanguageInstallationManager::getSkippedInvalidMarkupEntries() |
| list<string> | $language_keys |
Definition at line 126 of file LanguageActivity.php.
References $policy.
Referenced by ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble\entries(), ILIAS\Language\Activities\InstallLanguage\perform(), and ILIAS\Language\Activities\UpdateLanguage\perform().
Here is the caller graph for this function:
|
protected |
Definition at line 67 of file LanguageActivity.php.
References Vendor\Package\$f, and $text.
| ILIAS\Language\Activities\LanguageActivity::isAllowedToPerform | ( | int | $usr_id, |
| mixed | $parameters | ||
| ) |
This shall check if the given user is allowed to perform the activity based on business rules of this component.
This shall, for example, check if the given user may add this other user to a course based on RBAC and position permissions, but this shall not check overall business rules such as: root may do everything. This shall not cause any observable side effects.
| mixed | $parameters | whatever the FormInput from getInputDescription produces. |
Implements ILIAS\Component\Activities\Activity.
Definition at line 140 of file LanguageActivity.php.
References ILIAS\Language\Activities\LanguageActivity\isKnownUser(), and ILIAS\Repository\rbac().
Referenced by ILIAS\Language\Activities\LanguageActivity\maybePerformAs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Never the anonymous user, regardless of its RBAC roles.
Definition at line 161 of file LanguageActivity.php.
References ANONYMOUS_USER_ID.
Referenced by ILIAS\Language\Activities\LanguageActivity\isAllowedToPerform().
Here is the caller graph for this function:| ILIAS\Language\Activities\LanguageActivity::maybePerformAs | ( | InputFactory | $input_factory, |
| int | $usr_id, | ||
| array | $raw_parameters | ||
| ) |
Grinds the $raw_parameters through the input description, checks if the users is allowed to perform the action as requested and, if so, then attempts to performs it.
Wraps the result and possible errors in the Result type.
Implements ILIAS\Component\Activities\Activity.
Definition at line 170 of file LanguageActivity.php.
References Vendor\Package\$e, $parameters, ILIAS\Component\Activities\Activity\getInputDescription(), ILIAS\Language\Activities\LanguageActivity\isAllowedToPerform(), ILIAS\Language\Activities\LanguageActivity\normalizeParameters(), ILIAS\Language\Activities\Failure\of(), and ILIAS\Component\Activities\Activity\perform().
Here is the call graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\Language\Activities\AddLanguageEntry, ILIAS\Language\Activities\InstallLanguage, ILIAS\Language\Activities\SetLanguageDetectionEnabled, ILIAS\Language\Activities\SetLanguageTranslationEnabled, ILIAS\Language\Tests\Activities\LanguageActivityThrowingInputDescriptionTestDouble, ILIAS\Language\Tests\Activities\LanguageActivityPerformEchoTestDouble, and ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble.
Referenced by ILIAS\Language\Activities\LanguageActivity\maybePerformAs().
Here is the caller graph for this function:
|
protected |
The database was written, but the PO/MO overlay of a module was not: callers must not report plain success.
Definition at line 52 of file LanguageActivity.php.
References Vendor\Package\$f, and $text.