TwistPHP Documentation

Localisation

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.

Example Usage

<?php
//Set the variables for the example
$blIncludeLocalisation false;

//Call the function getLanguages with the example vars
Twist::Localisation() -> getLanguages($blIncludeLocalisation);

Method List

Method Access Returns
__constructconstructvoid
getLanguagepublicvoid
getLanguagespublicvoid
getOfficialLanguagepublicvoid
getCountrypublicvoid
getCountriespublicvoid
getCurrencypublicvoid
getCurrenciespublicvoid
getOfficialCurrencypublicvoid
getTimezonepublicvoid
getTimezonespublicvoid
convertCurrencypublicvoid
currencyConversionRatepublicvoid