Add table view for calendar

This commit is contained in:
Mathieu Lagacé
2020-10-02 12:38:07 -04:00
parent 2a8178c6f3
commit 60c5a995f2
9 changed files with 185 additions and 707 deletions

View File

@@ -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;
}
}