SingleExporterBase
extends ExporterBase
in package
implements
SingleExporter
Class SingleExportBase
Base class for all "Single" exporters = exporting only one specific class (Team, Game) and not a hierarchy class (Tournament, Category, Round, Group).
Tags
Interfaces, Classes and Traits
- SingleExporter
- Interface SingleExport
Table of Contents
- $modifiers : array<string|int, mixed>
- $object : WithId
- __construct() : mixed
- get() : array<string|int, mixed>
- Finish the export query -> get the result
- getJson() : string
- Return result as json
- getWithObject() : array<string|int, mixed>
- Finish the export query -> get the result including an object reference
- jsonSerialize() : array<string|int, mixed>
- Serialize exported data as JSON
- applyModifiers() : void
- Apply set modifiers to data array
Properties
$modifiers
protected
array<string|int, mixed>
$modifiers
= []
$object
protected
WithId
$object
Methods
__construct()
public
__construct(WithId $object) : mixed
Parameters
- $object : WithId
Return values
mixed —get()
Finish the export query -> get the result
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed> —The query result
getJson()
Return result as json
public
getJson() : string
Tags
Return values
string —getWithObject()
Finish the export query -> get the result including an object reference
public
getWithObject() : array<string|int, mixed>
Return values
array<string|int, mixed> —jsonSerialize()
Serialize exported data as JSON
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —applyModifiers()
Apply set modifiers to data array
protected
applyModifiers(array<string|int, mixed> &$data) : void
Parameters
- $data : array<string|int, mixed>