PHP Trait Ojs\CoreBundle\Entity\TranslateableTrait

Datei anzeigen Open project: ojs/ojs

Protected Properties

Property Type Description
$currentLocale
$currentTranslation
$defaultLocale string
$locale string

Public Methods

Method 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 method

public getCurrentLocale ( ) : mixed
return mixed

getCurrentTranslation() public method

public getCurrentTranslation ( ) : Prezent\Doctrine\Translatable\TranslationInterface
return Prezent\Doctrine\Translatable\TranslationInterface

getDefaultLocale() public method

public getDefaultLocale ( ) : mixed
return mixed

getLocale() public method

Deprecation:
public getLocale ( ) : mixed
return mixed

getLogicalFieldTranslation() public method

public getLogicalFieldTranslation ( $field, boolean $withLocale = true ) : string
$field
$withLocale boolean
return string

getTranslationByLocale() public method

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

setCurrentLocale() public method

public setCurrentLocale ( mixed $currentLocale )
$currentLocale mixed

setCurrentTranslation() public method

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

setDefaultLocale() public method

public setDefaultLocale ( mixed $defaultLocale )
$defaultLocale mixed

setLocale() public method

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
return string

$locale protected_oe property

Deprecation:
protected string $locale
return string