PHP 트레잇 Ojs\CoreBundle\Entity\TranslateableTrait

파일 보기 프로젝트 열기: ojs/ojs

보호된 프로퍼티들

프로퍼티 타입 설명
$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 )

메소드 상세

getCurrentLocale() 공개 메소드

public getCurrentLocale ( ) : mixed
리턴 mixed

getCurrentTranslation() 공개 메소드

public getCurrentTranslation ( ) : Prezent\Doctrine\Translatable\TranslationInterface
리턴 Prezent\Doctrine\Translatable\TranslationInterface

getDefaultLocale() 공개 메소드

public getDefaultLocale ( ) : mixed
리턴 mixed

getLocale() 공개 메소드

사용 중단:
public getLocale ( ) : mixed
리턴 mixed

getLogicalFieldTranslation() 공개 메소드

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

getTranslationByLocale() 공개 메소드

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

setCurrentLocale() 공개 메소드

public setCurrentLocale ( mixed $currentLocale )
$currentLocale mixed

setCurrentTranslation() 공개 메소드

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

setDefaultLocale() 공개 메소드

public setDefaultLocale ( mixed $defaultLocale )
$defaultLocale mixed

setLocale() 공개 메소드

사용 중단:
public setLocale ( mixed $locale )
$locale mixed

프로퍼티 상세

$currentLocale 보호되어 있는 프로퍼티

protected $currentLocale

$currentTranslation 보호되어 있는 프로퍼티

protected $currentTranslation

$defaultLocale 보호되어 있는 프로퍼티

protected string $defaultLocale
리턴 string

$locale 보호되어 있는 프로퍼티

사용 중단:
protected string $locale
리턴 string