mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Add table view for calendar
This commit is contained in:
@@ -143,4 +143,17 @@ class Event extends Model
|
||||
{
|
||||
return count($this->schedule["niveaux"]);
|
||||
}
|
||||
|
||||
static function getMaxLevels($events)
|
||||
{
|
||||
$maxlevel = 0;
|
||||
foreach ($events as $e)
|
||||
{
|
||||
if ($e->nbNiveau() > $maxlevel)
|
||||
{
|
||||
$maxlevel = $e->nbNiveau();
|
||||
}
|
||||
}
|
||||
return $maxlevel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user