|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilAdvancedMDRecordTranslation. More...
Collaboration diagram for ilAdvancedMDRecordTranslations:Public Member Functions | |
| getDefaultLanguage () | |
| getRecordId () | |
| isConfigured (string $lang_key) | |
| getTranslation (string $lang_key) | |
| getTranslations () | |
| getDefaultTranslation () | |
| cloneRecord (int $new_record_id) | |
| addTranslationEntry (string $language_code, bool $default=false) | |
| updateDefault (string $default) | |
| getFormTranslationInfo (string $active_language) | |
| modifyTranslationInfoForTitle (ilPropertyFormGUI $form, ilTextInputGUI $title, string $active_language) | |
| modifyTranslationInfoForDescription (ilPropertyFormGUI $form, ilTextAreaInputGUI $description, string $active_language) | |
| updateTranslations (string $active_language, string $title, string $description) | |
| getTitleForLanguage (string $language) | |
| getDescriptionForLanguage (string $language) | |
| toXML (ilXmlWriter $writer) | |
Static Public Member Functions | |
| static | getInstanceByRecordId (int $record_id) |
Private Member Functions | |
| __construct (int $record_id) | |
| read () | |
Private Attributes | |
| $record_id | |
| $record | |
| $translations = [] | |
| $default_language = '' | |
| $db | |
| $lng | |
Static Private Attributes | |
| static | $instances = null |
Class ilAdvancedMDRecordTranslation.
Definition at line 8 of file class.ilAdvancedMDRecordTranslations.php.
|
private |
Definition at line 46 of file class.ilAdvancedMDRecordTranslations.php.
References $DIC, $record_id, and read().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::addTranslationEntry | ( | string | $language_code, |
| bool | $default = false |
||
| ) |
Definition at line 156 of file class.ilAdvancedMDRecordTranslations.php.
| ilAdvancedMDRecordTranslations::cloneRecord | ( | int | $new_record_id | ) |
Definition at line 128 of file class.ilAdvancedMDRecordTranslations.php.
References getTranslations().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::getDefaultLanguage | ( | ) |
Definition at line 73 of file class.ilAdvancedMDRecordTranslations.php.
References $default_language.
Referenced by toXML().
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::getDefaultTranslation | ( | ) |
Definition at line 118 of file class.ilAdvancedMDRecordTranslations.php.
References getTranslations().
Referenced by modifyTranslationInfoForDescription(), and modifyTranslationInfoForTitle().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::getDescriptionForLanguage | ( | string | $language | ) |
| string | $language |
Definition at line 272 of file class.ilAdvancedMDRecordTranslations.php.
References getTranslation().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::getFormTranslationInfo | ( | string | $active_language | ) |
Definition at line 188 of file class.ilAdvancedMDRecordTranslations.php.
References $txt.
|
static |
| int | $record_id |
Definition at line 62 of file class.ilAdvancedMDRecordTranslations.php.
References $record_id.
Referenced by ilObjectMetaDataBlockGUI\__construct(), ilAdvancedMDRecordLanguageTableGUI\__construct(), ilAdvancedMDFieldTranslations\__construct(), ilAdvancedMDRecord\_clone(), ilAdvancedMDTranslationGUI\getAvailableLanguagesOptions(), ilAdvancedMDSettingsGUI\initForm(), ilAdvancedMDSettingsGUI\initLanguage(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseSearch(), ilLuceneAdvancedSearchFields\readSections(), ilAdvancedMDTranslationGUI\saveAdditionalTranslations(), ilAdvancedMDSettingsGUI\saveRecord(), ilAdvancedMDRecordTranslationGUI\saveTranslations(), ilAdvancedMDSettingsGUI\showLanguageSwitch(), ilAdvancedMDRecordParser\storeRecords(), ilAdvancedMDRecord\toXML(), and ilAdvancedMDSettingsGUI\updateRecord().
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::getRecordId | ( | ) |
Definition at line 81 of file class.ilAdvancedMDRecordTranslations.php.
References $record_id.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::getTitleForLanguage | ( | string | $language | ) |
| string | $language |
Definition at line 261 of file class.ilAdvancedMDRecordTranslations.php.
References getTranslation().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::getTranslation | ( | string | $lang_key | ) |
| string | $lang_key |
Definition at line 99 of file class.ilAdvancedMDRecordTranslations.php.
References isConfigured().
Referenced by getDescriptionForLanguage(), getTitleForLanguage(), modifyTranslationInfoForDescription(), modifyTranslationInfoForTitle(), and updateTranslations().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::getTranslations | ( | ) |
Definition at line 110 of file class.ilAdvancedMDRecordTranslations.php.
References $translations.
Referenced by cloneRecord(), getDefaultTranslation(), toXML(), and updateDefault().
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::isConfigured | ( | string | $lang_key | ) |
| string | $lang_key |
Definition at line 90 of file class.ilAdvancedMDRecordTranslations.php.
Referenced by getTranslation().
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::modifyTranslationInfoForDescription | ( | ilPropertyFormGUI | $form, |
| ilTextAreaInputGUI | $description, | ||
| string | $active_language | ||
| ) |
| ilPropertyFormGUI | $form | |
| ilTextInputGUI | $title |
Definition at line 227 of file class.ilAdvancedMDRecordTranslations.php.
References getDefaultTranslation(), getTranslation(), ilFormPropertyGUI\setInfo(), and ilTextAreaInputGUI\setValue().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::modifyTranslationInfoForTitle | ( | ilPropertyFormGUI | $form, |
| ilTextInputGUI | $title, | ||
| string | $active_language | ||
| ) |
| ilPropertyFormGUI | $form | |
| ilTextInputGUI | $title |
Definition at line 209 of file class.ilAdvancedMDRecordTranslations.php.
References getDefaultTranslation(), getTranslation(), ilFormPropertyGUI\setInfo(), and ilTextInputGUI\setValue().
Here is the call graph for this function:
|
private |
Definition at line 136 of file class.ilAdvancedMDRecordTranslations.php.
References $query, $res, ilAdvancedMDRecord\_getInstanceByRecordId(), ilDBConstants\FETCHMODE_OBJECT, getRecordId(), ilDBConstants\T_INTEGER, and ilAdvancedMDRecordTranslation\TABLE_NAME.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecordTranslations::toXML | ( | ilXmlWriter | $writer | ) |
| ilXmlWriter | $writer |
Definition at line 284 of file class.ilAdvancedMDRecordTranslations.php.
References getDefaultLanguage(), getTranslations(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::updateDefault | ( | string | $default | ) |
Definition at line 171 of file class.ilAdvancedMDRecordTranslations.php.
References getTranslations().
Here is the call graph for this function:| ilAdvancedMDRecordTranslations::updateTranslations | ( | string | $active_language, |
| string | $title, | ||
| string | $description | ||
| ) |
| ilPropertyFormGUI | $form | |
| string | $active_language |
Definition at line 246 of file class.ilAdvancedMDRecordTranslations.php.
References getTranslation().
Here is the call graph for this function:
|
private |
Definition at line 38 of file class.ilAdvancedMDRecordTranslations.php.
|
private |
Definition at line 33 of file class.ilAdvancedMDRecordTranslations.php.
Referenced by getDefaultLanguage().
|
staticprivate |
Definition at line 13 of file class.ilAdvancedMDRecordTranslations.php.
|
private |
Definition at line 43 of file class.ilAdvancedMDRecordTranslations.php.
|
private |
Definition at line 23 of file class.ilAdvancedMDRecordTranslations.php.
|
private |
Definition at line 18 of file class.ilAdvancedMDRecordTranslations.php.
Referenced by __construct(), getInstanceByRecordId(), and getRecordId().
|
private |
Definition at line 28 of file class.ilAdvancedMDRecordTranslations.php.
Referenced by getTranslations().