PHP 클래스 Kimai_Translation_Data

상속: extends ArrayObject
파일 보기 프로젝트 열기: kimai/kimai

보호된 프로퍼티들

프로퍼티 타입 설명
$language string

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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

get() 공개 메소드

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

set() 공개 메소드

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

프로퍼티 상세

$language 보호되어 있는 프로퍼티

protected string $language
리턴 string