19 declare(strict_types=1);
    37         if ($translation === 
"-") {
    40         $language_identification = 
"{$identification->serialize()}|$language_key";
    41         $mt = ilMMItemTranslationStorage::find($language_identification);
    43             $mt = 
new ilMMItemTranslationStorage();
    44             $mt->setId($language_identification);
    45             $mt->setIdentification($identification->serialize());
    49         $mt->setTranslation($translation);
    50         $mt->setLanguageKey($language_key);
    63         return self::storeTranslation($identification, self::getDefaultLanguage(), $translation);
    72         if (!self::hasDefaultTranslation($identification)) {
    75         $lng = self::getDefaultLanguage();
    76         $key = 
"{$identification->serialize()}|$lng";
    80         if ($item = self::find(
$key)) {
    81             return $item->getTranslation();
    93         $lng = self::getDefaultLanguage();
    94         $key = 
"{$identification->serialize()}|$lng";
    96         return self::find(
$key) instanceof 
self;
   104         static $default_language;
   106         if (!isset($default_language)) {
   107             $default_language = $DIC->language()->getDefaultLanguage() ? $DIC->language()->getDefaultLanguage() : 
"en";
   110         return $default_language;
   126     protected string $identification = 
'';
   155     public function setId(
string $id): void
 setIdentification(string $identification)
 
string $language_key
true  text  8 
 
static getDefaultLanguage()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Interface IdentificationInterface. 
 
static storeDefaultTranslation(IdentificationInterface $identification, string $translation)
 
setTranslation(string $translation)
 
string $id
true  true  true  text  64 
 
static hasDefaultTranslation(IdentificationInterface $identification)
 
string $identification
true  text  256 
 
setLanguageKey(string $language_key)
 
string $connector_container_name
 
static storeTranslation(IdentificationInterface $identification, string $language_key, string $translation)
 
string $translation
true  text  4000 
 
Class ilMMItemTranslationStorage.