Language
in package
A language definition for which the consent management is available.
Table of Contents
Properties
- $current : bool
- Is this the current language?
- $flag : string
- URL to the flag.
- $locale : string
- The locale (currently, there is no ISO standard necessary).
- $name : string
- Name.
- $url : string
- Translation URL to the current opened website URL.
Methods
- fromJson() : self
- Generate a `Language` object from an array.
- getFlag() : mixed
- Getter.
- getLocale() : mixed
- Getter.
- getName() : mixed
- Getter.
- getUrl() : mixed
- Getter.
- isCurrent() : mixed
- Getter.
- setFlag() : mixed
- Setter.
- setIsCurrent() : mixed
- Setter.
- setLocale() : mixed
- Setter.
- setName() : mixed
- Setter.
- setUrl() : mixed
- Setter.
- toJson() : mixed
- Create a JSON representation of this object.
Properties
$current
Is this the current language?
private
bool
$current
$flag
URL to the flag.
private
string
$flag
$locale
The locale (currently, there is no ISO standard necessary).
private
string
$locale
$name
Name.
private
string
$name
$url
Translation URL to the current opened website URL.
private
string
$url
Methods
fromJson()
Generate a `Language` object from an array.
public
static fromJson(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfgetFlag()
Getter.
public
getFlag() : mixed
Tags
getLocale()
Getter.
public
getLocale() : mixed
Tags
getName()
Getter.
public
getName() : mixed
Tags
getUrl()
Getter.
public
getUrl() : mixed
Tags
isCurrent()
Getter.
public
isCurrent() : mixed
Tags
setFlag()
Setter.
public
setFlag(string $flag) : mixed
Parameters
- $flag : string
Tags
setIsCurrent()
Setter.
public
setIsCurrent(bool $current) : mixed
Parameters
- $current : bool
Tags
setLocale()
Setter.
public
setLocale(string $locale) : mixed
Parameters
- $locale : string
Tags
setName()
Setter.
public
setName(string $name) : mixed
Parameters
- $name : string
Tags
setUrl()
Setter.
public
setUrl(string $url) : mixed
Parameters
- $url : string
Tags
toJson()
Create a JSON representation of this object.
public
toJson() : mixed