\naigcIMeet

Functions related to meets.

Summary

Methods
Constants
getList()
getNationalsMeetId()
isNationals()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getList()

getList(\mysqli  $db, \DateTime  $startDate = null, \DateTime  $endDate = null) : array

Gets a list of meets within a given date range.

Parameters

\mysqli $db

The database connection.

\DateTime $startDate

The start of the date range. Default is today.

\DateTime $endDate

The end of the date range. If not provided then returns 20 years worth.

Returns

array —

The list of meets within the range.

getNationalsMeetId()

getNationalsMeetId(\mysqli  $db, string  $year = null) : int

Gets the Nationals MeetID dynamically.

Assumes that it is hosted by the Board of Directors ClubID 178, is called Nationals, and is in April. Emory and Texas State have also been hardcoded in.

Parameters

\mysqli $db

The database connection.

string $year

The year to search. If it isn't provided, uses the current seasonYear.

Returns

int —

The MeetID of Nationals in the given year.

isNationals()

isNationals(\mysqli  $db, int  $meetId) : bool

Returns true if the given meet is a Nationals.

Parameters

\mysqli $db

The database coonnection.

int $meetId

The ID of the meet to check.

Returns

bool —

True if the meet is a Nationals.