Tournament Generator

SetupExporter extends ExporterBase

Class SetupExporter

Tags
author

Tomáš Vojík vojik@wboy.cz

since
0.5

Table of Contents

$modifiers  : array<string|int, mixed>
$object  : WithId
__construct()  : mixed
export()  : array<string|int, mixed>
get()  : array<string|int, mixed>
Finish the export query -> get the result
getBasic()  : array<string|int, mixed>
getJson()  : string
Return result as json
jsonSerialize()  : array<string|int, mixed>
Serialize exported data as JSON
start()  : ExporterInterface
applyModifiers()  : void
Apply set modifiers to data array
getCategoriesData()  : void
Get all setup information for categories
getCategoryData()  : object
Get all setup information from a Category class
getGroupData()  : object
Get all setup information from a Group class
getGroupsData()  : void
Get all setup information for groups and progressions
getProgressionData()  : object
Get all setup information from a Progression class
getRoundData()  : object
Get all setup information from a Round class
getRoundsData()  : void
Get all setup information for rounds
getTeamFilterData()  : object
Get all setup information from a TeamFilter class
getTournamentData()  : void
Get all setup information from a Tournament class

Properties

$modifiers

protected array<string|int, mixed> $modifiers = []

Methods

export()

public static export(WithId $object) : array<string|int, mixed>
Parameters
$object : WithId
Tags
inheritDoc
Return values
array<string|int, mixed>

get()

Finish the export query -> get the result

public get() : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

The query result

getBasic()

public getBasic() : array<string|int, mixed>
Tags
inheritDoc
throws
Exception
Return values
array<string|int, mixed>

jsonSerialize()

Serialize exported data as JSON

public jsonSerialize() : array<string|int, mixed>
Tags
see
json_encode()
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>
Return values
void

getCategoriesData()

Get all setup information for categories

protected getCategoriesData(array<string|int, mixed> &$data) : void
Parameters
$data : array<string|int, mixed>
Tags
throws
Exception
Return values
void

getCategoryData()

Get all setup information from a Category class

protected getCategoryData(Category $category) : object
Parameters
$category : Category

Category class to export

Tags
throws
Exception
Return values
object

getGroupData()

Get all setup information from a Group class

protected getGroupData(Group $group) : object
Parameters
$group : Group

Group class to export

Tags
throws
Exception
Return values
object

getGroupsData()

Get all setup information for groups and progressions

protected getGroupsData(array<string|int, mixed> &$data) : void
Parameters
$data : array<string|int, mixed>
Tags
throws
Exception
Return values
void

getProgressionData()

Get all setup information from a Progression class

protected getProgressionData(Progression $progression) : object
Parameters
$progression : Progression

Progression class to export

Return values
object

getRoundData()

Get all setup information from a Round class

protected getRoundData(Round $round) : object
Parameters
$round : Round

Round class to export

Tags
throws
Exception
Return values
object

getRoundsData()

Get all setup information for rounds

protected getRoundsData(array<string|int, mixed> &$data) : void
Parameters
$data : array<string|int, mixed>
Tags
throws
Exception
Return values
void

getTeamFilterData()

Get all setup information from a TeamFilter class

protected getTeamFilterData(TeamFilter $filter) : object
Parameters
$filter : TeamFilter

TeamFilter class to export

Return values
object

getTournamentData()

Get all setup information from a Tournament class

protected getTournamentData(array<string|int, mixed> &$data) : void
Parameters
$data : array<string|int, mixed>
Tags
throws
Exception
Return values
void

Search results