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];
87 $query =
'SELECT sid,mid FROM ecs_part_settings ep '.
88 'JOIN ecs_server es ON ep.sid = es.server_id '.
89 'WHERE export = '.$ilDB->quote(1,
'integer').
' '.
90 'AND active = '.$ilDB->quote(1,
'integer').
' '.
91 'ORDER BY cname,es.title';
98 $mids[$counter][
'sid'] =
$row->sid;
99 $mids[$counter][
'mid'] =
$row->mid;
114 $query =
'SELECT DISTINCT(sid) FROM ecs_part_settings ep '.
115 'JOIN ecs_server es ON ep.sid = es.server_id '.
116 'WHERE export = '.$ilDB->quote(1,
'integer').
' '.
117 'AND active = '.$ilDB->quote(1,
'integer').
' ';
136 $query =
'DELETE from ecs_part_settings '.
137 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer');
138 $ilDB->manipulate(
$query);
150 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
152 $query =
'SELECT mid FROM ecs_part_settings '.
153 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer').
' '.
169 return $this->server_id;
181 $query =
'SELECT * FROM ecs_part_settings '.
182 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' ';
186 $this->export[
$row->mid] =
$row->export;
187 $this->
import[
$row->mid] =
$row->import;
188 $this->import_type[
$row->mid] =
$row->import_type;
200 foreach($a_mids as $mid)
202 if($this->
import[$mid])
219 foreach($this->export as $mid => $enabled)
227 #return $this->enabled ? $this->enabled : array();
240 return $this->export[$a_mid] ?
true :
false;
252 $this->enabled = (array) $a_parts;