PHP Trait Ojs\CoreBundle\Entity\TranslateableTrait

Afficher le fichier Open project: ojs/ojs

Protected Properties

Свойство Type Description
$currentLocale
$currentTranslation
$defaultLocale string
$locale string

Méthodes publiques

Méthode Description
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 )

Method Details

getCurrentLocale() public méthode

public getCurrentLocale ( ) : mixed
Résultat mixed

getCurrentTranslation() public méthode

public getCurrentTranslation ( ) : Prezent\Doctrine\Translatable\TranslationInterface
Résultat Prezent\Doctrine\Translatable\TranslationInterface

getDefaultLocale() public méthode

public getDefaultLocale ( ) : mixed
Résultat mixed

getLocale() public méthode

Deprecation:
public getLocale ( ) : mixed
Résultat mixed

getLogicalFieldTranslation() public méthode

public getLogicalFieldTranslation ( $field, boolean $withLocale = true ) : string
$field
$withLocale boolean
Résultat string

getTranslationByLocale() public méthode

Returns translation of given locale
public getTranslationByLocale ( null $locale = null )
$locale null

setCurrentLocale() public méthode

public setCurrentLocale ( mixed $currentLocale )
$currentLocale mixed

setCurrentTranslation() public méthode

public setCurrentTranslation ( Prezent\Doctrine\Translatable\TranslationInterface $currentTranslation )
$currentTranslation Prezent\Doctrine\Translatable\TranslationInterface

setDefaultLocale() public méthode

public setDefaultLocale ( mixed $defaultLocale )
$defaultLocale mixed

setLocale() public méthode

Deprecation:
public setLocale ( mixed $locale )
$locale mixed

Property Details

$currentLocale protected_oe property

protected $currentLocale

$currentTranslation protected_oe property

protected $currentTranslation

$defaultLocale protected_oe property

protected string $defaultLocale
Résultat string

$locale protected_oe property

Deprecation:
protected string $locale
Résultat string