PHP Класс Xinax\LaravelGettext\Translators\BaseTranslator

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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