Country
in package
Around Countries
Table of Contents
- getCountryByIso() : string
- translate country to german if user is german
- getCurrency() : array<string|int, mixed>
- getCurrencyByCode() : array<string|int, mixed>
- getFlag() : string
- getFlagsArray() : array<string|int, mixed>
- getIso() : string
- get iso2 by country name
- getJQVMap() : array<string|int, mixed>
- returns the map element 'map' with the html elements and 'js' with the jquery, map_def, map_box
- getLangSwitch() : string
- Erzeugt den Link mit der Flagge zum Wechsel
- getMap() : array<string|int, mixed>
- Returns an OSM map, used for ajax
- getMember() : array<string|int, mixed>
- Get Member Country Cloud
- getParties() : array<string|int, mixed>
- Zeigt alle laender aller partys und gibt werte zurueck (abhaengig von template)
- getPartyCurrency() : array<string|int, mixed>
- getTranslate() : string
- translate country to german if user is german
Methods
getCountryByIso()
translate country to german if user is german
public
static getCountryByIso([string $strIso = '' ]) : string
Parameters
- $strIso : string = ''
Return values
string —- translated to german
getCurrency()
public
static getCurrency([string $strCountry = 'Germany' ]) : array<string|int, mixed>
Parameters
- $strCountry : string = 'Germany'
Return values
array<string|int, mixed> —getCurrencyByCode()
public
static getCurrencyByCode([string $strCode = 'EUR' ]) : array<string|int, mixed>
Parameters
- $strCode : string = 'EUR'
Return values
array<string|int, mixed> —getFlag()
public
static getFlag([string $strCountry = '' ][, int $bLink = 1 ]) : string
Parameters
- $strCountry : string = ''
- $bLink : int = 1
Return values
string —getFlagsArray()
public
static getFlagsArray([string $strCountry = '' ]) : array<string|int, mixed>
Parameters
- $strCountry : string = ''
Return values
array<string|int, mixed> —getIso()
get iso2 by country name
public
static getIso(string $strCountry) : string
Parameters
- $strCountry : string
Return values
string —- translated to german
getJQVMap()
returns the map element 'map' with the html elements and 'js' with the jquery, map_def, map_box
public
static getJQVMap([string $type = 'party' ]) : array<string|int, mixed>
Parameters
- $type : string = 'party'
-
- party|member
Return values
array<string|int, mixed> —getLangSwitch()
Erzeugt den Link mit der Flagge zum Wechsel
public
static getLangSwitch(string $strRequestUri) : string
Parameters
- $strRequestUri : string
Tags
Return values
string —getMap()
Returns an OSM map, used for ajax
public
static getMap(string $aID, string $jsData) : array<string|int, mixed>
Parameters
- $aID : string
- $jsData : string
Return values
array<string|int, mixed> —getMember()
Get Member Country Cloud
public
static getMember(array<string|int, mixed> $saAtt) : array<string|int, mixed>
Parameters
- $saAtt : array<string|int, mixed>
Return values
array<string|int, mixed> —getParties()
Zeigt alle laender aller partys und gibt werte zurueck (abhaengig von template)
public
static getParties([array<string|int, mixed> $saAtt = [] ], int $bPast[, int $bSQL = 1 ][, string $strTemplate = 'party_country_cloud.tpl.php' ]) : array<string|int, mixed>
Parameters
- $saAtt : array<string|int, mixed> = []
- $bPast : int
- $bSQL : int = 1
-
- if set to 0, we don't use SQL. $bSQL is needed to get sometimes only the start and stop but not the loop
- $strTemplate : string = 'party_country_cloud.tpl.php'
Tags
Return values
array<string|int, mixed> —- abhängig von template
getPartyCurrency()
public
static getPartyCurrency(array<string|int, mixed> $saParty) : array<string|int, mixed>
Parameters
- $saParty : array<string|int, mixed>
Return values
array<string|int, mixed> —getTranslate()
translate country to german if user is german
public
static getTranslate([string $strCountry = '' ]) : string
Parameters
- $strCountry : string = ''
Return values
string —- translated to german