PHP Class Redaxscript\Language

Since: 2.2.0
Author: Henry Ruhs
Inheritance: extends Singleton
Mostra file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_languageArray array array of the language

Public Methods

Method Description
get ( string $key = null, string $index = null ) : mixed get item from language
init ( string $language = 'en' ) init the class
load ( mixed $path = null ) load from language path
set ( string $key = null, mixed $value = null ) set item to language

Method Details

get() public method

get item from language
Since: 3.0.0
public get ( string $key = null, string $index = null ) : mixed
$key string key of the item
$index string index of the array
return mixed

init() public method

init the class
Since: 2.2.0
public init ( string $language = 'en' )
$language string detected language to process

load() public method

load from language path
Since: 3.0.0
public load ( mixed $path = null )
$path mixed single or multiple language path

set() public method

set item to language
Since: 2.4.0
public set ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

Property Details

$_languageArray protected_oe static_oe property

array of the language
protected static array $_languageArray
return array