PHP Class Kimai_Translation_Data

Inheritance: extends ArrayObject
Afficher le fichier Open project: kimai/kimai

Protected Properties

Свойство Type Description
$language string

Méthodes publiques

Méthode 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 méthode

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 méthode

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

get() public méthode

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

set() public méthode

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

Property Details

$language protected_oe property

protected string $language
Résultat string