\naigc\v25Score

Functions related to Scores.

Summary

Methods
Properties
Constants
__construct()
changeScore()
changeVerifiedScore()
verifyScore()
unVerifyScore()
scorePanelName()
score()
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\IRoutine  $routine, \naigc\v25\IJudge  $judge, \naigc\v25\IScorePanel  $scorePanel) : mixed

Creates a new Score object from routineID and associated keys.

Parameters

\naigc\v25\util\IMysql $mysql

The database.

\naigc\v25\IRoutine $routine

Routine instance.

\naigc\v25\IJudge $judge

Judge first name and last name.

\naigc\v25\IScorePanel $scorePanel

Score panel name.

Throws

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

Returns

mixed

changeScore()

changeScore(float  $score, \naigc\v25\IPerson  $scoredBy) : \naigc\v25\IScore

Changes a Score after it has been entered.

This function will not allow a score to be changed after it has been verified.

Parameters

float $score

Score.

\naigc\v25\IPerson $scoredBy

The Person who scored.

Throws

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

Returns

\naigc\v25\IScore —

The Score.

changeVerifiedScore()

changeVerifiedScore(float  $score, \naigc\v25\IPerson  $scoredBy) : \naigc\v25\IScore

Changes a Score after it has been Verified.

This function will not work unless the $scoredBy person has permission to make this change.

Parameters

float $score

Score.

\naigc\v25\IPerson $scoredBy

The Person who scored.

Throws

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

Returns

\naigc\v25\IScore —

The Score.

verifyScore()

verifyScore(\naigc\v25\IPerson  $verifiedBy) : \naigc\v25\IScore

Verifies a Score.

Parameters

\naigc\v25\IPerson $verifiedBy

The Person who verified.

Throws

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

Returns

\naigc\v25\IScore —

The Score.

unVerifyScore()

unVerifyScore() : \naigc\v25\IScore

Unverifies a Score.

Throws

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

Returns

\naigc\v25\IScore —

The Score.

scorePanelName()

scorePanelName() : string

Gets the name of the ScorePanel for the Score.

Returns

string —

The name of the ScorePanel.

score()

score() : float

Gets the Score value.

Returns

float —

The value of the Score.