18 declare(strict_types=1);
    50         $this->
logger = $DIC->logger()->wsrv();
    57         $this->
logger->debug(__METHOD__ . 
': Finished reading communities');
    91         return $this->own_ids ?: [];
   102         return $this->communities ?: [];
   113         foreach ($this->communities as $community) {
   114             if ($community->getId() === $a_id) {
   128             foreach ($community->getParticipants() as $participant) {
   129                 if ($participant->getPid() === $a_pid) {
   130                     $participants[] = $participant;
   145         return $this->participants[$a_mid] ?? 
false;
   150         return isset($this->participants[$a_mid]) ?
   151             $this->participants[$a_mid]-> getParticipantName() :
   160         foreach ($this->communities as $community) {
   161             foreach ($community->getParticipants() as $part) {
   162                 if ($part->getMID() === $a_mid) {
   176         $en = $ps->getEnabledParticipants();
   179             foreach ($community->getParticipants() as $participant) {
   180                 if (in_array($participant->getMid(), $en, 
true)) {
   181                     $e_part[] = $participant;
   196             $res = $this->connector->getMemberships();
   198             if (!is_array(
$res->getResult())) {
   201             foreach (
$res->getResult() as $community) {
   203                 foreach ($tmp_comm->getParticipants() as $participant) {
   204                     $this->participants[$participant->getMID()] = $participant;
   205                     if ($participant->isSelf()) {
   206                         $this->own_ids[] = $participant->getMID();
   209                 $this->communities[] = $tmp_comm;
   212             $this->
logger->error(__METHOD__ . 
': Error connecting to ECS server. ' . $e->getMessage());
 
static getInstanceByServerId(int $a_server_id)
Get instance by server id. 
 
getServerId()
Get current server id. 
 
static getInstanceByServerId(int $a_server_id)
Get singleton instance per server.