PHP Class Kimai_Translation_Data

Inheritance: extends ArrayObject
Mostrar archivo Open project: kimai/kimai

Protected Properties

Property Type Description
$language string

Public Methods

Method Description
__construct ( array | null | object $language ) Create a translation object: pre-fill with english and replace by $language specific data.
addTranslations ( $language ) Adds the translations for the given language.
get ( $key, null $default = null ) : mixed | null Get a translation key, if not available return default.
set ( $key, $value ) Add a new translation

Method Details

__construct() public method

Create a translation object: pre-fill with english and replace by $language specific data.
public __construct ( array | null | object $language )
$language array | null | object

addTranslations() public method

Adds the translations for the given language.
public addTranslations ( $language )
$language

get() public method

Get a translation key, if not available return default.
public get ( $key, null $default = null ) : mixed | null
$key
$default null
return mixed | null

set() public method

Add a new translation
public set ( $key, $value )
$key
$value

Property Details

$language protected_oe property

protected string $language
return string