1
0

Added Highscore to programs/view

This commit is contained in:
2014-07-20 16:37:49 +02:00
parent e4a08ce32d
commit d7e056a4ee
5 changed files with 38 additions and 9 deletions

View File

@@ -115,4 +115,15 @@ class HighscoreGames extends CActiveRecord
{
return '/Highscores/list?gameid=' . $this->ID;
}
/**
* @return HighscoreEntries
*/
public function getMaximumScore()
{
if (count($this->ENTRIES) > 0)
return $this->ENTRIES[0];
else
return null;
}
}