mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-24 09:08:47 +02:00
Mails groupés
This commit is contained in:
@ -237,4 +237,18 @@ class Team
|
||||
|
||||
return $docs;
|
||||
}
|
||||
|
||||
public function getAllEmails()
|
||||
{
|
||||
$emails = [];
|
||||
if ($this->getEncadrantId() != null)
|
||||
$emails[] = User::fromId($this->getEncadrantId())->getEmail();
|
||||
|
||||
foreach ($this->getParticipants() as $participantId) {
|
||||
if ($participantId != 0)
|
||||
$emails[] = User::fromId($participantId)->getEmail();
|
||||
}
|
||||
|
||||
return $emails;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user