48 $this->server_id = $a_server_id;
61 $GLOBALS[
'ilLog']->write(__METHOD__.
': Using deprecated call');
73 if(isset(self::$instances[$a_server_id]))
75 return self::$instances[$a_server_id];
90 $query =
'SELECT mid FROM ecs_part_settings '.
91 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer');
110 $query =
'SELECT sid,mid FROM ecs_part_settings ep '.
111 'JOIN ecs_server es ON ep.sid = es.server_id '.
112 'WHERE export = '.$ilDB->quote(1,
'integer').
' '.
113 'AND active = '.$ilDB->quote(1,
'integer').
' '.
114 'ORDER BY cname,es.title';
121 $mids[$counter][
'sid'] =
$row->sid;
122 $mids[$counter][
'mid'] =
$row->mid;
137 $query =
'SELECT DISTINCT(sid) FROM ecs_part_settings ep '.
138 'JOIN ecs_server es ON ep.sid = es.server_id '.
139 'WHERE export = '.$ilDB->quote(1,
'integer').
' '.
140 'AND active = '.$ilDB->quote(1,
'integer').
' ';
159 $query =
'DELETE from ecs_part_settings '.
160 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer');
161 $ilDB->manipulate(
$query);
173 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
175 $query =
'SELECT mid FROM ecs_part_settings '.
176 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer').
' '.
192 return $this->server_id;
204 $query =
'SELECT * FROM ecs_part_settings '.
205 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' ';
209 $this->export[
$row->mid] =
$row->export;
210 $this->
import[
$row->mid] =
$row->import;
211 $this->import_type[
$row->mid] =
$row->import_type;
223 foreach($a_mids as $mid)
225 if($this->
import[$mid])
242 foreach($this->export as $mid => $enabled)
250 #return $this->enabled ? $this->enabled : array();
263 return $this->export[$a_mid] ?
true :
false;
275 $this->enabled = (array) $a_parts;