Afficher classe seulement s'il y a des bulletins
This commit is contained in:
parent
7a68c8323b
commit
7b4c1f4a0c
1 changed files with 6 additions and 1 deletions
|
@ -35,6 +35,11 @@ class Classe {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function haveBulletins(){
|
public function haveBulletins(){
|
||||||
return sizeof($this->bulletins) > 0;
|
foreach ($this->bulletins as $bulletin) {
|
||||||
|
if ( $bulletin->isVisible() ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue