60                 include_once(
'Services/WebServices/ECS/classes/class.ilECSSettings.php');
 
   61                 include_once(
'Services/WebServices/ECS/classes/class.ilECSConnector.php');
 
   62                 include_once(
'Services/WebServices/ECS/classes/class.ilECSConnectorException.php');
 
   63                 include_once(
'Services/WebServices/ECS/classes/class.ilECSCommunity.php');
 
   96                 return $this->own_ids ? $this->own_ids : array();
 
  108                 return $this->communities ? $this->communities : array();
 
  120                 foreach($this->communities as $community)
 
  122                         if($community->getId() == $a_id)
 
  138                 return isset($this->participants[$a_mid]) ? $this->participants[$a_mid] : 
false;
 
  152                         foreach($community->getParticipants() as $participant)
 
  154                                 if($participant->isPublishable())
 
  156                                         $p_part[] = $participant;
 
  160                 return $p_part ? $p_part : array();
 
  173                         foreach($community->getParticipants() as $participant)
 
  175                                 if($participant->isEnabled())
 
  177                                         $e_part[] = $participant;
 
  181                 return $e_part ? $e_part : array();
 
  197                         $res = $this->connector->getMemberships();
 
  198                         if(!is_array(
$res->getResult()))
 
  202                         foreach(
$res->getResult() as $community)
 
  205                                 foreach($tmp_comm->getParticipants() as $participant)
 
  207                                         $this->participants[$participant->getMID()] = $participant;
 
  208                                         if($participant->isSelf())
 
  210                                                 $this->own_ids[] = $participant->getMID();
 
  213                                 $this->communities[] = $tmp_comm;
 
  219                         $ilLog->write(__METHOD__.
': Error connecting to ECS server. '.$e->getMessage());