Working on manual payouts

This commit is contained in:
Torsten 2018-01-08 10:09:44 +01:00
parent d15d10a022
commit a9efcc8e15
3 changed files with 99 additions and 64 deletions

View file

@ -49,6 +49,13 @@ class Season extends Model
return $seasons[1];
}
public static function get($seasonId) {
if ($seasonId==-1) return Season::getCurrent();
$season=Season::where('id','=',$seasonId)->first();
return $season;
}
public static function hasQualifications($seasonId=-1) {
return Season::hasLeagueType($seasonId,League::RANK_QUALIFICATION);
}