PHP 클래스 Backend\Core\Engine\Language

저자: Tijs Verkoyen ([email protected])
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
err ( string $key, string $module = null ) : string Get an error from the language-file
getActiveLanguages ( ) : array Get the active languages
getCheckboxValues ( ) : array Get all active languages in a format usable by SpoonForm's addRadioButton
getCurrentModule ( ) : string
getError ( string $key, string $module = null ) : string Get an error from the language-file
getErrors ( ) : array Get all the errors from the language-file
getInterfaceLanguage ( ) : string Get the current interface language
getInterfaceLanguages ( ) : array Get all the possible interface languages
getLabel ( string $key, string $module = null ) : string Get a label from the language-file
getLabels ( ) : array Get all the labels from the language-file
getMessage ( string $key, string $module = null ) : string Get a message from the language-file
getMessages ( ) : array Get the messages
getWorkingLanguage ( ) : string Get the current working language
getWorkingLanguages ( ) : array Get all possible working languages
lbl ( string $key, string $module = null ) : string Get a label from the language-file
msg ( string $key, string $module = null ) : string Get a message from the language-file
setLocale ( string $language ) Set locale It will require the correct file and init the needed vars
setWorkingLanguage ( string $language ) Set the current working language

메소드 상세

err() 공개 정적인 메소드

Get an error from the language-file
사용 중단:
public static err ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
리턴 string

getActiveLanguages() 공개 정적인 메소드

Get the active languages
사용 중단:
public static getActiveLanguages ( ) : array
리턴 array

getCheckboxValues() 공개 정적인 메소드

Get all active languages in a format usable by SpoonForm's addRadioButton
사용 중단:
public static getCheckboxValues ( ) : array
리턴 array

getCurrentModule() 공개 정적인 메소드

public static getCurrentModule ( ) : string
리턴 string

getError() 공개 정적인 메소드

Get an error from the language-file
사용 중단:
public static getError ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
리턴 string

getErrors() 공개 정적인 메소드

Get all the errors from the language-file
사용 중단:
public static getErrors ( ) : array
리턴 array

getInterfaceLanguage() 공개 정적인 메소드

Get the current interface language
사용 중단:
public static getInterfaceLanguage ( ) : string
리턴 string

getInterfaceLanguages() 공개 정적인 메소드

Get all the possible interface languages
사용 중단:
public static getInterfaceLanguages ( ) : array
리턴 array

getLabel() 공개 정적인 메소드

Get a label from the language-file
사용 중단:
public static getLabel ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
리턴 string

getLabels() 공개 정적인 메소드

Get all the labels from the language-file
사용 중단:
public static getLabels ( ) : array
리턴 array

getMessage() 공개 정적인 메소드

Get a message from the language-file
사용 중단:
public static getMessage ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
리턴 string

getMessages() 공개 정적인 메소드

Get the messages
사용 중단:
public static getMessages ( ) : array
리턴 array

getWorkingLanguage() 공개 정적인 메소드

Get the current working language
사용 중단:
public static getWorkingLanguage ( ) : string
리턴 string

getWorkingLanguages() 공개 정적인 메소드

Get all possible working languages
사용 중단:
public static getWorkingLanguages ( ) : array
리턴 array

lbl() 공개 정적인 메소드

Get a label from the language-file
사용 중단:
public static lbl ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
리턴 string

msg() 공개 정적인 메소드

Get a message from the language-file
사용 중단:
public static msg ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
리턴 string

setLocale() 공개 정적인 메소드

Set locale It will require the correct file and init the needed vars
public static setLocale ( string $language )
$language string The language to load.

setWorkingLanguage() 공개 정적인 메소드

Set the current working language
public static setWorkingLanguage ( string $language )
$language string The language to use, if not provided we will use the working language.