ApiParty
in package
uses
TraitData, TraitSeo
FinalYes
Table of Contents
Properties
- $apiTools : ApiTools
- $exportLimit : int
- $getParas : array<string|int, mixed>
- $partySQL : PartySQL
- $seo : Seo
- $data : Data
- $input : Input
- $version : int
Methods
- __construct() : mixed
- fetchUpcomingPartiesXML() : array<string|int, mixed>
- getDataInstance() : Data
- getLimitForExport() : int
- getPartyItemListJsonLD() : string
- In use on parties.php for bots only
- getSeoInstance() : Seo
- outputResult() : void
- checkPID() : void
- fetchAndSetVersion() : int
- fetchCountriesJson() : array<string|int, mixed>
- fetchHeaderContent() : string
- Returns the header content for the response
- fetchPartyList() : array<string|int, mixed>
- fetchPartyListJson() : array<string|int, mixed>
- Returns the list as JSON
- fetchPartyListJsonLD() : array{'name': string, 'numberOfItems': mixed, 'itemListElement': array}
- Returns the list as JSON
- getPartyDetailsJson() : string
- getPartyDetailsVerOne() : array<string|int, mixed>
- getPartyListResultJson() : string
- getSeoName() : string
- setResponseHeaders() : void
- Set the response headers
Properties
$apiTools
public
ApiTools
$apiTools
$exportLimit
public
int
$exportLimit
$getParas
public
array<string|int, mixed>
$getParas
= []
$partySQL
public
PartySQL
$partySQL
$seo
public
Seo
$seo
$data
private
Data
$data
$input read-only
private
Input
$input
$version
private
int
$version
= 1
Methods
__construct()
public
__construct(Input $input) : mixed
Parameters
- $input : Input
fetchUpcomingPartiesXML()
public
fetchUpcomingPartiesXML() : array<string|int, mixed>
Return values
array<string|int, mixed>getDataInstance()
public
getDataInstance() : Data
Return values
DatagetLimitForExport()
public
getLimitForExport() : int
Return values
intgetPartyItemListJsonLD()
In use on parties.php for bots only
public
getPartyItemListJsonLD() : string
Return values
stringgetSeoInstance()
public
getSeoInstance() : Seo
Return values
SeooutputResult()
public
outputResult([array<string|int, mixed>|null $partyData = [] ]) : void
Parameters
- $partyData : array<string|int, mixed>|null = []
checkPID()
private
checkPID() : void
fetchAndSetVersion()
private
fetchAndSetVersion() : int
Return values
intfetchCountriesJson()
private
fetchCountriesJson() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchHeaderContent()
Returns the header content for the response
private
fetchHeaderContent() : string
Return values
stringfetchPartyList()
private
fetchPartyList() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchPartyListJson()
Returns the list as JSON
private
fetchPartyListJson() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchPartyListJsonLD()
Returns the list as JSON
private
fetchPartyListJsonLD([bool $isPage = false ]) : array{'name': string, 'numberOfItems': mixed, 'itemListElement': array}
Parameters
- $isPage : bool = false
Return values
array{'name': string, 'numberOfItems': mixed, 'itemListElement': array}getPartyDetailsJson()
private
getPartyDetailsJson([array<string|int, mixed> $partyData = [] ]) : string
Parameters
- $partyData : array<string|int, mixed> = []
Return values
stringgetPartyDetailsVerOne()
private
getPartyDetailsVerOne(int $PID) : array<string|int, mixed>
Parameters
- $PID : int
Return values
array<string|int, mixed>getPartyListResultJson()
private
getPartyListResultJson() : string
Return values
stringgetSeoName()
private
getSeoName(mixed $saRow) : string
Parameters
- $saRow : mixed
Return values
stringsetResponseHeaders()
Set the response headers
private
setResponseHeaders() : void