Свойство | Тип | Описание | |
---|---|---|---|
$currentLocale | |||
$currentTranslation | |||
$defaultLocale | string | ||
$locale | string |
Метод | Описание | |
---|---|---|
getCurrentLocale ( ) : mixed | ||
getCurrentTranslation ( ) : Prezent\Doctrine\Translatable\TranslationInterface | ||
getDefaultLocale ( ) : mixed | ||
getLocale ( ) : mixed | ||
getLogicalFieldTranslation ( $field, boolean $withLocale = true ) : string | ||
getTranslationByLocale ( null $locale = null ) | Returns translation of given locale | |
setCurrentLocale ( mixed $currentLocale ) | ||
setCurrentTranslation ( Prezent\Doctrine\Translatable\TranslationInterface $currentTranslation ) | ||
setDefaultLocale ( mixed $defaultLocale ) | ||
setLocale ( mixed $locale ) |
public getCurrentTranslation ( ) : Prezent\Doctrine\Translatable\TranslationInterface | ||
Результат | Prezent\Doctrine\Translatable\TranslationInterface |
public getLogicalFieldTranslation ( $field, boolean $withLocale = true ) : string | ||
$field | ||
$withLocale | boolean | |
Результат | string |
public getTranslationByLocale ( null $locale = null ) | ||
$locale | null |
public setCurrentLocale ( mixed $currentLocale ) | ||
$currentLocale | mixed |
public setCurrentTranslation ( Prezent\Doctrine\Translatable\TranslationInterface $currentTranslation ) | ||
$currentTranslation | Prezent\Doctrine\Translatable\TranslationInterface |
public setDefaultLocale ( mixed $defaultLocale ) | ||
$defaultLocale | mixed |