LangComponent
extends Injectable
Table of Contents
Constants
-
LANG_DE
= 'de'
-
LANG_EN
= 'en'
-
LANGUAGES
= [self::LANG_EN => 'english', self::LANG_DE => 'german']
Properties
-
$projectId
: mixed
-
$projectList
: mixed
-
$projectName
: mixed
-
$projectNameIdAssoc
: mixed
-
$termList
: mixed
-
$translation
: mixed
-
$translationByModule
: mixed
-
$apiToken
: mixed
-
$client
: mixed
Methods
-
__construct()
: mixed
-
getClient()
: Client|null
-
getProjectId()
: int
-
getProjectList()
: Obj
-
getProjectName()
: string
-
getTermList()
: ArrayIterator
-
getTranslationByModule()
: ArrayIterator
-
loadProjectList()
: Obj
-
loadtermList()
: ArrayIterator
-
requireTranslation()
: ArrayIterator
-
requireTranslationByModule()
: ArrayIterator
LANG_DE
public
mixed
LANG_DE
= 'de'
LANG_EN
public
mixed
LANG_EN
= 'en'
LANGUAGES
public
mixed
LANGUAGES
= [self::LANG_EN => 'english', self::LANG_DE => 'german']
$projectId
public
mixed
$projectId
= null
$projectList
public
mixed
$projectList
= null
$projectName
public
mixed
$projectName
= null
$projectNameIdAssoc
public
mixed
$projectNameIdAssoc
= null
$termList
public
mixed
$termList
= []
$translation
public
mixed
$translation
= []
$translationByModule
public
mixed
$translationByModule
= []
$apiToken
private
mixed
$apiToken
= null
$client
private
mixed
$client
= null
__construct()
public
__construct([mixed $name = 'VATjar' ]) : mixed
Parameters
-
$name
: mixed
= 'VATjar'
-
getClient()
public
getClient() : Client|null
Return values
Client|null
getProjectId()
public
getProjectId() : int
getProjectList()
public
getProjectList() : Obj
getProjectName()
public
getProjectName() : string
getTermList()
public
getTermList([mixed $language = 'en' ]) : ArrayIterator
Parameters
-
$language
: mixed
= 'en'
-
Return values
ArrayIterator
getTranslationByModule()
public
getTranslationByModule() : ArrayIterator
Return values
ArrayIterator
loadProjectList()
public
loadProjectList() : Obj
loadtermList()
public
loadtermList([mixed $language = 'en' ]) : ArrayIterator
Parameters
-
$language
: mixed
= 'en'
-
Return values
ArrayIterator
requireTranslation()
public
requireTranslation([mixed $language = 'en' ]) : ArrayIterator
Parameters
-
$language
: mixed
= 'en'
-
Return values
ArrayIterator
requireTranslationByModule()
public
requireTranslationByModule([mixed $language = 'en' ]) : ArrayIterator
Parameters
-
$language
: mixed
= 'en'
-
Return values
ArrayIterator