60                include_once(
'Services/WebServices/ECS/classes/class.ilECSSetting.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');
 
   67                        $this->settings = $setting;
 
   71                        $GLOBALS[
'ilLog']->write(__METHOD__.
': Using deprecated call');
 
   89                $GLOBALS[
'ilLog']->write(__METHOD__.
': Using deprecated call');
 
  100                if(isset(self::$instances[$a_server_id]))
 
  102                        return self::$instances[$a_server_id];
 
  134                return $this->own_ids ? $this->own_ids : array();
 
  146                return $this->communities ? $this->communities : array();
 
  158                foreach($this->communities as $community)
 
  160                        if($community->getId() == $a_id)
 
  176                return isset($this->participants[$a_mid]) ? $this->participants[$a_mid] : 
false;
 
  186                foreach($this->communities as $community)
 
  188                        foreach($community->getParticipants() as $part)
 
  190                                if($part->getMID() == $a_mid)
 
  209                        foreach($community->getParticipants() as $participant)
 
  211                                if($participant->isPublishable())
 
  213                                        $p_part[] = $participant;
 
  217                return $p_part ? $p_part : array();
 
  228                include_once 
'./Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php';
 
  230                $en = $ps->getEnabledParticipants();
 
  233                        foreach($community->getParticipants() as $participant)
 
  235                                if(in_array($participant->getMid(), $en))
 
  237                                        $e_part[] = $participant;
 
  241                return $e_part ? $e_part : array();
 
  256                        $res = $this->connector->getMemberships();
 
  257                        if(!is_array(
$res->getResult()))
 
  261                        foreach(
$res->getResult() as $community)
 
  264                                foreach($tmp_comm->getParticipants() as $participant)
 
  266                                        $this->participants[$participant->getMID()] = $participant;
 
  267                                        if($participant->isSelf())
 
  269                                                $this->own_ids[] = $participant->getMID();
 
  272                                $this->communities[] = $tmp_comm;
 
  277                        $ilLog->write(__METHOD__.
': Error connecting to ECS server. '.$e->getMessage());
 
static getInstanceByServerId($a_server_id)
Get instance by server id.
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.