\naigc\v25Session

Functions related to Sessions.

Summary

Methods
Properties
Constants
__construct()
name()
levels()
teams()
clubs()
competitorBrackets()
competitorBrackets2()
start()
end()
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\IMeet  $meet, string  $name) : mixed

Creates a new Session object.

Parameters

\naigc\v25\util\IMysql $mysql

The database.

\naigc\v25\IMeet $meet

The Meet that the Session is part of.

string $name

The ID of the Session.

Throws

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

Returns

mixed

name()

name() : string

{@inheritDoc}

Returns

string

levels()

levels() : \naigc\v25\ILevel[]

Gets the Levels available in the Session.

Throws

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

Returns

\naigc\v25\ILevel[] —

The list of Levels.

teams()

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

Gets the Teams assigned to the Session.

Throws

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

Returns

\naigc\v25\ITeam[] —

The list of Teams.

clubs()

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

Gets the Clubs associated with a Session.

This includes Clubs with a Competitor and/or a Team in the Session.

Throws

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

Returns

\naigc\v25\IClub[] —

The list of Clubs.

competitorBrackets()

competitorBrackets(\naigc\v25\IEvent  $event, \naigc\v25\IDiscipline|null  $discipline = null, \naigc\v25\ILevel|null  $level = null, string|null  $clubName = null) : \naigc\v25\ICompetitorBracket[]

Gets the CompetitorBrackets assigned to the Session.

Parameters

\naigc\v25\IEvent $event

The event.

\naigc\v25\IDiscipline|null $discipline

The discipline.

\naigc\v25\ILevel|null $level

The level.

string|null $clubName

The club.

Throws

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

Returns

\naigc\v25\ICompetitorBracket[] —

The list of CompetitorBrackets.

competitorBrackets2()

competitorBrackets2(\naigc\v25\IEvent  $event, \naigc\v25\IDiscipline|null  $discipline = null, \naigc\v25\ILevel|null  $level = null, string|null  $clubName = null) : \naigc\v25\ICompetitorBracket[]

Gets the CompetitorBrackets assigned to the Session.

Parameters

\naigc\v25\IEvent $event

The event.

\naigc\v25\IDiscipline|null $discipline

The discipline.

\naigc\v25\ILevel|null $level

The level.

string|null $clubName

The club.

Throws

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

Returns

\naigc\v25\ICompetitorBracket[] —

The list of CompetitorBrackets.

start()

start() : \DateTime

Gets the start of the Session.

Returns

\DateTime

end()

end() : \DateTime

Gets the end of the Session.

Returns

\DateTime