![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Language class. More...
Public Member Functions | |
| __construct ($lang_str) | |
| Construct AFS language object from string. | |
| get_string () | |
| String representation of an instance. | |
| __toString () | |
| String representation of an instance. | |
Public Attributes | |
| $lang = null | |
| Language code in lower case (iso639-1 code) | |
| $country = null | |
| Country code in lower case (iso3166-1 code) | |
Language class.
This class simplify language management by providing:
| __construct | ( | $lang_str | ) |
Construct AFS language object from string.
Language should be composed of two ASCII characters representing language code from iso639-1 standard followed by hyphen (or for convenience by underscore) followed by two characters representing country code from iso3166-1 standard.
en en-US EN-GB en_gb (for convenience).english en-USA XX is invalid, it will not be considered as invalid since it is composed of two letters.| $lang_str | [in] language and country code as string parameter. |
| InvalidArgumentException | when provided lang_str is invalid. |
| __toString | ( | ) |
String representation of an instance.
| get_string | ( | ) |
String representation of an instance.
1.8.1.2