Language
extends Facade
in package
Tags
Table of Contents
- $app : App
- $resolvedInstance : array<string|int, mixed>
- __callStatic() : mixed
- add() :
- addFile() :
- addTranslate() :
- clearResolvedInstances() : mixed
- clear
- exists() :
- getActive() :
- getDefault() :
- getKey() :
- getLocale() :
- getName() :
- getRoutePrefix() :
- list() :
- load() :
- remove() :
- routePrefix() :
- setActive() :
- setDefault() :
- setFacadeApplication() : mixed
- {@inheritDoc}
- setRoutePrefix() :
- translate() :
- useCookie() :
- useSession() :
- getFacadeAccessor() : string
- getFacadeRoot() : object|stdClass
- resolveFacadeInstance() : object
Properties
$app
protected
static App
$app
$resolvedInstance
protected
static array<string|int, mixed>
$resolvedInstance
Methods
__callStatic()
public
static __callStatic( $method, $args) : mixed
Parameters
Tags
Return values
mixed —add()
public
static add(string $key, string $name, string $locale = null) :
Parameters
- $key : string
- $name : string
- $locale = null : string
Return values
—addFile()
public
static addFile(string $key, string $file_path) :
Parameters
- $key : string
- $file_path : string
Return values
—addTranslate()
public
static addTranslate(string $key, mixed $value) :
Parameters
- $key : string
- $value : mixed
Return values
—clearResolvedInstances()
clear
public
static clearResolvedInstances() : mixed
Return values
mixed —exists()
public
static exists(string $lang_key) :
Parameters
- $lang_key : string
Return values
—getActive()
public
static getActive() :
Return values
—getDefault()
public
static getDefault() :
Return values
—getKey()
public
static getKey() :
Return values
—getLocale()
public
static getLocale() :
Return values
—getName()
public
static getName() :
Return values
—getRoutePrefix()
public
static getRoutePrefix() :
Return values
—list()
public
static list() :
Return values
—load()
public
static load() :
Return values
—remove()
public
static remove(string $lang_key) :
Parameters
- $lang_key : string
Return values
—routePrefix()
public
static routePrefix() :
Return values
—setActive()
public
static setActive(string $key) :
Parameters
- $key : string
Return values
—setDefault()
public
static setDefault(mixed $key) :
Parameters
- $key : mixed
Return values
—setFacadeApplication()
{@inheritDoc}
public
static setFacadeApplication(App $app) : mixed
Parameters
- $app : App
Return values
mixed —setRoutePrefix()
public
static setRoutePrefix(string $prefix) :
- @see Language::getRoutePrefix()
Parameters
- $prefix : string
Return values
—translate()
public
static translate(string $key, mixed $args) :
Parameters
- $key : string
- $args : mixed
Return values
—useCookie()
public
static useCookie(string $key) :
Parameters
- $key : string
Return values
—useSession()
public
static useSession(string $key) :
- @see Language::setRoutePrefix()
Parameters
- $key : string
Return values
—getFacadeAccessor()
protected
static getFacadeAccessor() : string
Return values
string —getFacadeRoot()
protected
static getFacadeRoot() : object|stdClass
Return values
object|stdClass —resolveFacadeInstance()
protected
static resolveFacadeInstance(string $mainClass) : object
Parameters
- $mainClass : string