62        include_once(
'Services/WebServices/ECS/classes/class.ilECSSetting.php');
 
   63        include_once(
'Services/WebServices/ECS/classes/class.ilECSConnector.php');
 
   64        include_once(
'Services/WebServices/ECS/classes/class.ilECSConnectorException.php');
 
   65        include_once(
'Services/WebServices/ECS/classes/class.ilECSCommunity.php');
 
   70            $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ . 
': Using deprecated call');
 
   71            $GLOBALS[
'DIC'][
'ilLog']->logStack();
 
   88        $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ . 
': Using deprecated call');
 
   99        if (isset(self::$instances[$a_server_id])) {
 
  100            return self::$instances[$a_server_id];
 
  132        return $this->own_ids ? $this->own_ids : array();
 
  143        return $this->communities ? $this->communities : array();
 
  155        foreach ($this->communities as $community) {
 
  156            if ($community->getId() == $a_id) {
 
  171            foreach ($community->getParticipants() as $participant) {
 
  172                if ($participant->getPid() == $a_pid) {
 
  188        return isset($this->participants[$a_mid]) ? $this->participants[$a_mid] : 
false;
 
  198        foreach ($this->communities as $community) {
 
  199            foreach ($community->getParticipants() as $part) {
 
  200                if ($part->getMID() == $a_mid) {
 
  217            foreach ($community->getParticipants() as $participant) {
 
  218                if ($participant->isPublishable()) {
 
  219                    $p_part[] = $participant;
 
  223        return $p_part ? $p_part : array();
 
  234        include_once 
'./Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php';
 
  236        $en = $ps->getEnabledParticipants();
 
  238            foreach ($community->getParticipants() as $participant) {
 
  239                if (in_array($participant->getMid(), $en)) {
 
  240                    $e_part[] = $participant;
 
  244        return $e_part ? $e_part : array();
 
  260            $res = $this->connector->getMemberships();
 
  261            if (!is_array(
$res->getResult())) {
 
  264            foreach (
$res->getResult() as $community) {
 
  266                foreach ($tmp_comm->getParticipants() as $participant) {
 
  267                    $this->participants[$participant->getMID()] = $participant;
 
  268                    if ($participant->isSelf()) {
 
  269                        $this->own_ids[] = $participant->getMID();
 
  272                $this->communities[] = $tmp_comm;
 
  275            $ilLog->write(__METHOD__ . 
': Error connecting to ECS server. ' . $e->getMessage());
 
An exception for terminatinating execution or to throw for unit testing.
static getInstanceByServerId($a_server_id)
Get instance by server id.
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
foreach($_POST as $key=> $value) $res