Afficher classe seulement s'il y a des bulletins

This commit is contained in:
Mickael Veaudour 2024-11-05 11:17:00 +01:00
parent 7a68c8323b
commit 7b4c1f4a0c
No known key found for this signature in database

View file

@ -35,6 +35,11 @@ class Classe {
}
public function haveBulletins(){
return sizeof($this->bulletins) > 0;
foreach ($this->bulletins as $bulletin) {
if ( $bulletin->isVisible() ) {
return true;
}
return false;
}
}
}