Constructor
ChesterFormatter
ChesterFormatter
(
DB &$db,
PhraseBook &$pb)
-
DB
&$db: the database providing data
-
PhraseBook
&$pb: the catalog of needed queries
The export for a single event
string
buildEventBlock
(
ChesterMapping &$mapper,
int $eid,
string $programNumber,
string $category,
string $level,
string $style)
-
ChesterMapping
&$mapper: maps CIB labels to Chester codes
-
int
$eid: the events primary key
-
string
$programNumber: the audience facing numeric identifier
-
string
$category: the category of the event (often blank)
-
string
$level: the CIB label for the event's level
-
string
$style: the CIB label for the event's style
Outputs the adjudicator chunk
string
buildJudgeList
()
Creates the full export format
The text names of dances involved in an event
string
_buildDanceList
(
QueryResult &$qr,
int $numDances)
-
QueryResult
&$qr: a query result
-
int
$numDances: now many rows in this query result
The list of couples numbers entered in an event
string
_buildEntryList
(
QueryResult &$qr,
int $numEntries)
-
QueryResult
&$qr: a query result
-
int
$numEntries: now many rows in this query result