PHP 클래스 Xinax\LaravelGettext\Translators\BaseTranslator

파일 보기 프로젝트 열기: xinax/laravel-gettext 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter Framework adapter
$configuration Config container
$fileSystem Xinax\LaravelGettext\FileSystem File system helper

공개 메소드들

메소드 설명
__toString ( ) : mixed Return the current locale
getDomain ( ) : String Returns the current domain
getEncoding ( ) : mixed Gets the Current encoding.
getLocale ( ) : String Returns the current locale string identifier
isLocaleSupported ( $locale ) : boolean Returns a boolean that indicates if $locale is supported by configuration
setDomain ( String $domain ) : self Sets the current domain and updates gettext domain application
setEncoding ( mixed $encoding ) : self Sets the Current encoding.
setLocale ( $locale ) : BaseTranslator Sets and stores on session the current locale code
supportedLocales ( ) : array Returns supported locales

보호된 메소드들

메소드 설명
sessionGet ( $key, null $default = null ) : mixed Return a value from session with an optional default
sessionSet ( $key, $value ) : mixed Sets a value in session session

메소드 상세

__toString() 공개 메소드

Return the current locale
public __toString ( ) : mixed
리턴 mixed

getDomain() 공개 메소드

Returns the current domain
public getDomain ( ) : String
리턴 String

getEncoding() 공개 메소드

Gets the Current encoding.
public getEncoding ( ) : mixed
리턴 mixed

getLocale() 공개 메소드

Returns the current locale string identifier
public getLocale ( ) : String
리턴 String

isLocaleSupported() 공개 메소드

Returns a boolean that indicates if $locale is supported by configuration
public isLocaleSupported ( $locale ) : boolean
리턴 boolean

sessionGet() 보호된 메소드

Return a value from session with an optional default
protected sessionGet ( $key, null $default = null ) : mixed
$key
$default null
리턴 mixed

sessionSet() 보호된 메소드

Sets a value in session session
protected sessionSet ( $key, $value ) : mixed
$key
$value
리턴 mixed

setDomain() 공개 메소드

Sets the current domain and updates gettext domain application
public setDomain ( String $domain ) : self
$domain String
리턴 self

setEncoding() 공개 메소드

Sets the Current encoding.
public setEncoding ( mixed $encoding ) : self
$encoding mixed the encoding
리턴 self

setLocale() 공개 메소드

Sets and stores on session the current locale code
public setLocale ( $locale ) : BaseTranslator
리턴 BaseTranslator

supportedLocales() 공개 메소드

Returns supported locales
public supportedLocales ( ) : array
리턴 array

프로퍼티 상세

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

Framework adapter
protected $adapter

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

Config container
protected $configuration

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

File system helper
protected FileSystem,Xinax\LaravelGettext $fileSystem
리턴 Xinax\LaravelGettext\FileSystem