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');
68 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Using deprecated call');
86 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Using deprecated call');
87 return self::getInstanceByServerId(15);
97 if (isset(self::$instances[$a_server_id])) {
98 return self::$instances[$a_server_id];
130 return $this->own_ids ? $this->own_ids :
array();
141 return $this->communities ? $this->communities :
array();
153 foreach ($this->communities as $community) {
154 if ($community->getId() == $a_id) {
169 foreach ($community->getParticipants() as $participant) {
170 if ($participant->getPid() == $a_pid) {
186 return isset($this->participants[$a_mid]) ? $this->participants[$a_mid] :
false;
196 foreach ($this->communities as $community) {
197 foreach ($community->getParticipants() as $part) {
198 if ($part->getMID() == $a_mid) {
215 foreach ($community->getParticipants() as $participant) {
216 if ($participant->isPublishable()) {
217 $p_part[] = $participant;
221 return $p_part ? $p_part :
array();
232 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php';
234 $en = $ps->getEnabledParticipants();
236 foreach ($community->getParticipants() as $participant) {
237 if (in_array($participant->getMid(), $en)) {
238 $e_part[] = $participant;
242 return $e_part ? $e_part :
array();
256 $res = $this->connector->getMemberships();
257 if (!is_array(
$res->getResult())) {
260 foreach (
$res->getResult() as $community) {
262 foreach ($tmp_comm->getParticipants() as $participant) {
263 $this->participants[$participant->getMID()] = $participant;
264 if ($participant->isSelf()) {
265 $this->own_ids[] = $participant->getMID();
268 $this->communities[] = $tmp_comm;
271 $ilLog->write(__METHOD__ .
': Error connecting to ECS server. ' . $e->getMessage());
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getInstanceByServerId($a_server_id)
Get instance by server id.
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.