ApiTools
in package
uses
TraitCountry
Table of Contents
Constants
- STATUS_MAPPING = [0 => 'Scheduled', 3 => 'Cancelled', 4 => 'Postponed', 5 => 'Moved']
Properties
Methods
- __construct() : mixed
- getCleanJsonContentParty() : array<string|int, mixed>
- Helper to get clean content
- getCountryInstance() : Country
- getEncode() : string
- Gibt utf8_encode zurueck, wenn der zeichensatz nicht utf8 ist helper-funktion fuer die umstellung auf utf8
- generateUrlImage() : string
- processKey() : string|null
Constants
STATUS_MAPPING
private
mixed
STATUS_MAPPING
= [0 => 'Scheduled', 3 => 'Cancelled', 4 => 'Postponed', 5 => 'Moved']
Properties
$country
private
Country
$country
$env
private
array<string|int, mixed>
$env
Methods
__construct()
public
__construct() : mixed
getCleanJsonContentParty()
Helper to get clean content
public
getCleanJsonContentParty(array<string|int, mixed> $partyRecord) : array<string|int, mixed>
Parameters
- $partyRecord : array<string|int, mixed>
-
- the tuple / record of the party
Return values
array<string|int, mixed>getCountryInstance()
public
getCountryInstance() : Country
Return values
CountrygetEncode()
Gibt utf8_encode zurueck, wenn der zeichensatz nicht utf8 ist helper-funktion fuer die umstellung auf utf8
public
getEncode(string $val) : string
Parameters
- $val : string
Return values
stringgenerateUrlImage()
private
generateUrlImage(string $name, string $path) : string
Parameters
- $name : string
- $path : string
Return values
stringprocessKey()
private
processKey(string $key, string $val, array<string|int, mixed> $partyRecord) : string|null
Parameters
- $key : string
- $val : string
- $partyRecord : array<string|int, mixed>