File path: dist/twist/Core/Helpers/Localisation.helper.php
Namespace: Twist\Core\Helpers
Extends: Base
Type: Class
Localisation
— Localisation of websites is becoming a necessity, the ability to list counties, currencies, timezones, languages and there relationship is essential.
Get a full list of countries and their ISO codes.
Get the native spoken language of a country by its ISO code.
Get the name of a language by its ISO language code.
Get the official currency by its ISO currency code.
<?php
//Set the variables for the example
$blIncludeLocalisation = false;
//Call the function getLanguages with the example vars
Twist::Localisation() -> getLanguages($blIncludeLocalisation);
Method | Access | Returns |
---|---|---|
__construct | construct | void |
getLanguage | public | void |
getLanguages | public | void |
getOfficialLanguage | public | void |
getCountry | public | void |
getCountries | public | void |
getCurrency | public | void |
getCurrencies | public | void |
getOfficialCurrency | public | void |
getTimezone | public | void |
getTimezones | public | void |
convertCurrency | public | void |
currencyConversionRate | public | void |