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

@@ -204,6 +204,9 @@ class Program extends CActiveRecord
return new DateTime($this->add_date);
}
/**
* @return string
*/
public function getStarHTML()
{
$out = '';
@@ -261,7 +264,16 @@ class Program extends CActiveRecord
return $result;
}
public function deleteDescriptions() {
public function deleteDescriptions()
{
MsHelper::deleteDir("data/programs/desc/" . $this->Name . "/");
}
/**
* @return HighscoreGames
*/
public function getHighscoreGame()
{
return HighscoreGames::model()->findByPk($this->highscore_gid);
}
}