ILIAS
release_8 Revision v8.19
|
Static Public Member Functions | |
static | _checkTranslate () |
Permission check for translations. More... | |
static | _checkMaintenance () |
Permission check for language maintenance (import/export) More... | |
static | _lookupLangFolderRefId () |
Lookup the ref_id of the global language folder. More... | |
static | _lookupId (string $a_key) |
Lookup the object ID for a language key. More... | |
static | _getTranslationLink () |
Get the link to translate the current page. More... | |
static | _isPageTranslation () |
Check if the current request is a page translation. More... | |
static | _saveUsages () |
Store the collected language variable usages in the user session This should be called as late as possible in a request. More... | |
static | _getSavedModules () |
Get the stored modules from the user session. More... | |
static | _getSavedTopics () |
Get the stored topics from the user session. More... | |
Static Protected Attributes | |
static bool | $cached_check_translate |
Definition at line 34 of file class.ilObjLanguageAccess.php.
|
static |
Permission check for language maintenance (import/export)
Return whether maintenance is possible (true/false)
Definition at line 81 of file class.ilObjLanguageAccess.php.
References $DIC, $ilSetting, $ilUser, and $ref_id.
Referenced by ilObjLanguageExtGUI\executeCommand().
|
static |
Permission check for translations.
This check is used for displaying the translation link on each page
Return whether translation is possible (true/false)
Definition at line 47 of file class.ilObjLanguageAccess.php.
References $DIC, $ilSetting, $ilUser, $lng, and $ref_id.
Referenced by ilDataCollectionGlobalTemplate\fillFooter(), ilGlobalTemplate\fillFooter(), and ILIAS\UICore\PageContentProvider\getFooterModification().
|
static |
Get the stored modules from the user session.
Return list of module names
Definition at line 200 of file class.ilObjLanguageAccess.php.
References ilSession\get().
Referenced by ilObjLanguageExtGUI\initAddNewEntryForm(), and ilObjLanguageExtGUI\viewObject().
|
static |
Get the stored topics from the user session.
Return list of module names
Definition at line 215 of file class.ilObjLanguageAccess.php.
References ilSession\get().
Referenced by ilObjLanguageExtGUI\initAddNewEntryForm(), and ilObjLanguageExtGUI\viewObject().
|
static |
Get the link to translate the current page.
Return translation link
Definition at line 139 of file class.ilObjLanguageAccess.php.
Referenced by ilDataCollectionGlobalTemplate\fillFooter(), ilGlobalTemplate\fillFooter(), and ILIAS\UICore\PageContentProvider\getFooterModification().
|
static |
Check if the current request is a page translation.
The page translation mode is used when the translation of a single page is called by the translation link on a page footer. On this screen only the topics stored from the calling page are shown for translation and only a save function for these topics is offered.
Definition at line 160 of file class.ilObjLanguageAccess.php.
References $DIC.
Referenced by ilLanguageExtTableGUI\__construct(), ilObjLanguageExtGUI\addAdminLocatorItems(), ilDataCollectionGlobalTemplate\fillFooter(), ilGlobalTemplate\fillFooter(), ilObjLanguageExtGUI\getAdminTabs(), ILIAS\UICore\PageContentProvider\getFooterModification(), ilLanguageExtTableGUI\initFilter(), ilObjLanguageExtGUI\setTitleAndDescription(), and ilObjLanguageExtGUI\viewObject().
|
static |
Lookup the object ID for a language key.
$a_key language key Return language object id
Definition at line 120 of file class.ilObjLanguageAccess.php.
Referenced by ilObjLanguageExtGUI\__construct().
|
static |
Lookup the ref_id of the global language folder.
Return language folder ref_id
Definition at line 101 of file class.ilObjLanguageAccess.php.
|
static |
Store the collected language variable usages in the user session This should be called as late as possible in a request.
Definition at line 184 of file class.ilObjLanguageAccess.php.
References $DIC, $lng, and ilSession\set().
Referenced by ilGlobalTemplate\getSpecial(), ilDataCollectionGlobalTemplate\getSpecial(), ilGlobalPageTemplate\printToStdout(), ilDataCollectionGlobalTemplate\printToStdout(), ILIAS\Services\UICore\MetaTemplate\PageContentGUI\renderPage(), and ilGlobalTemplate\renderPage().
|
staticprotected |
Definition at line 36 of file class.ilObjLanguageAccess.php.