\naigc\v25Meet

Functions related to Meets.

Summary

Methods
Properties
Constants
__construct()
clubs()
competitionGyms()
sessions()
brackets()
createBracket()
createCompetitor()
id()
name()
teams()
disciplines()
competitors()
sessionCurrent()
badges()
jsonSerialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\naigc\v25\util\IMysql  $mysql, int  $meetId) : mixed

Creates a new Meet object.

Parameters

\naigc\v25\util\IMysql $mysql

The database.

int $meetId

The ID of the Meet

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute
\naigc\v25\exception\Creation

Returns

mixed

clubs()

clubs() : \naigc\v25\IClub[]

Gets the Clubs participating in the Meet.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\IClub[] —

The array of Clubs.

competitionGyms()

competitionGyms() : \naigc\v25\ICompetitionGym[]

Gets the CompetitionGym sites for the Meet.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\ICompetitionGym[] —

The array of CompetitionGyms.

sessions()

sessions() : \naigc\v25\ISession[]

Gets the Sessions scheduled for the Meet.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\ISession[] —

The array of Sessions.

brackets()

brackets() : \naigc\v25\IBracket[]

Gets the Brackets competed in the Meet.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\IBracket[] —

The array of Brackets.

createBracket()

createBracket(\naigc\v25\IDiscipline  $discipline, \naigc\v25\ILevel  $level) : \naigc\v25\IBracket

Creates a new Bracket.

Parameters

\naigc\v25\IDiscipline $discipline

The Discipline the Bracket is for.

\naigc\v25\ILevel $level

The Level the Bracket is for.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute
\naigc\v25\exception\Creation

Returns

\naigc\v25\IBracket —

The newly created Bracket.

createCompetitor()

createCompetitor(int  $personId) : \naigc\v25\ICompetitor|null

Creates a new Competitor without a Team.

Parameters

int $personId

The ID of the Person who will be competing.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute
\naigc\v25\exception\Creation

Returns

\naigc\v25\ICompetitor|null —

The newly created Competitor.

id()

id() : int

Gets the ID of the Meet.

Returns

int —

The ID.

name()

name() : string

{@inheritDoc}

Returns

string

teams()

teams() : \naigc\v25\ITeam[]

Gets the Teams participating in the Meet.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\ITeam[] —

The array of Teams.

disciplines()

disciplines() : \naigc\v25\IDiscipline[]

Gets the Disciplines available.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\IDiscipline[] —

The array of Disciplines.

competitors()

competitors() : \naigc\v25\ICompetitor[]

Gets the Competitors in the Meet.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\ICompetitor[] —

The array of Competitors.

sessionCurrent()

sessionCurrent() : \naigc\v25\ISession|null

Gets the currently running session, if there is exactly one.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute
\OutOfBoundsException

when exactly 1 Session is not found.

Returns

\naigc\v25\ISession|null

badges()

badges() : \naigc\v25\IBadge[]

Gets all of the Badges to print.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute

Returns

\naigc\v25\IBadge[] —

The array of Badges.

jsonSerialize()

jsonSerialize() : array

Serializes object into json format for available properties

Returns

array