This class represents a language in the repository.
Constants¶
ALL ¶
Language.php
:
26
Constant for use in API's to specify that you want to load all languages.
|
|
Properties¶
$enabled¶
Language.php
|
|
indicates if the language is enabled or not.
$id¶
Language.php
|
|
the language id
$languageCode¶
Language.php
|
|
the language code in
$name¶
Language.php
|
|
human readable name of the language
$enabled¶
Language.php
:
46
|
|
$id¶
Language.php
:
33
The language id (auto generated).
|
|
$languageCode¶
Language.php
:
36
|
|
$name¶
Language.php
:
43
Human-readable name of the language.
|
|
Methods¶
__construct() ¶
ValueObject.php
:
30
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
getId() ¶
Language.php
:
48
|
|
Return values
int
getLanguageCode() ¶
Language.php
:
53
|
|
Return values
string
getName() ¶
Language.php
:
58
|
|
Return values
string
isEnabled() ¶
Language.php
:
63
|
|
Return values
bool
getProperties() ¶
ValueObject.php
:
50
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>