\naigc\v25CompetitorBracket

Functions related to CompetitorBrackets.

Summary

Methods
Properties
Constants
__construct()
competitor()
discipline()
level()
meet()
clubName()
name()
nameFirst()
nameLast()
isEligible()
routine()
routine1()
createRoutine()
deleteRoutine()
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, \naigc\v25\ICompetitor  $competitor, \naigc\v25\IBracket  $bracket) : mixed

Creates a new CompetitorBracket object.

Parameters

\naigc\v25\util\IMysql $mysql

The database.

\naigc\v25\ICompetitor $competitor

Competitor info.

\naigc\v25\IBracket $bracket

Bracket info.

Throws

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

Returns

mixed

competitor()

competitor() : \naigc\v25\ICompetitor

Gets the Competitor.

Returns

\naigc\v25\ICompetitor —

The Competitor.

discipline()

discipline() : \naigc\v25\IDiscipline

Gets the Discipline of the Bracket.

Returns

\naigc\v25\IDiscipline —

The Discipline.

level()

level() : \naigc\v25\ILevel

Gets the Level of the Bracket.

Returns

\naigc\v25\ILevel —

The Level.

meet()

meet() : \naigc\v25\IMeet

Gets the Meet the Bracket is part of.

Returns

\naigc\v25\IMeet —

The Meet.

clubName()

clubName() : string

Gets the Club Name of the Competitor.

Returns

string —

The Club Name.

name()

name() : string

{@inheritdoc}

Returns

string

nameFirst()

nameFirst() : string

Gets the first name of the Competitor.

Returns

string —

The first name.

nameLast()

nameLast() : string

Gets the last name of the Competitor.

Returns

string —

The last name.

isEligible()

isEligible() : bool

Gets whether the Competitor is eligible in the Bracket.

Returns

bool —

The eligibility.

routine()

routine(\naigc\v25\IEvent  $event) : \naigc\v25\IRoutine|null

Gets a CompetitorBracket's Routine for a given Event.

Parameters

\naigc\v25\IEvent $event

The Event to get the Routine for.

Throws

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

Returns

\naigc\v25\IRoutine|null —

The Routine.

routine1()

routine1(\naigc\v25\IEvent  $event, \naigc\v25\ICompetitionGym  $competitionGym) : \naigc\v25\IRoutine|null

Gets a CompetitorBracket's Routine for a given Event.

Parameters

\naigc\v25\IEvent $event

The Event to get the Routine for.

\naigc\v25\ICompetitionGym $competitionGym

The CompeitionGym to get the Routine for.

Throws

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

Returns

\naigc\v25\IRoutine|null —

The Routine.

createRoutine()

createRoutine(\naigc\v25\IEvent  $event) : \naigc\v25\IRoutine|null

Creates a new Routine on the given Event for the Competitor.

Parameters

\naigc\v25\IEvent $event

The Event to create the Routine for.

Throws

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

Returns

\naigc\v25\IRoutine|null —

The newly created Routine.

deleteRoutine()

deleteRoutine(\naigc\v25\IEvent  $event) : \naigc\v25\ICompetitorBracket

Deletes the Routine on the given Event for the Competitor.

Parameters

\naigc\v25\IEvent $event

The Event to delete the Routine for.

Throws

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

Returns

\naigc\v25\ICompetitorBracket —

The CompetitorBracket.