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,export_types 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 if(in_array($a_type, (array) unserialize(
$row->export_types)))
123 $mids[$counter][
'sid'] =
$row->sid;
124 $mids[$counter][
'mid'] =
$row->mid;
140 $query =
'SELECT DISTINCT(sid) FROM ecs_part_settings ep '.
141 'JOIN ecs_server es ON ep.sid = es.server_id '.
142 'WHERE export = '.$ilDB->quote(1,
'integer').
' '.
143 'AND active = '.$ilDB->quote(1,
'integer').
' ';
162 $query =
'DELETE from ecs_part_settings '.
163 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer');
164 $ilDB->manipulate(
$query);
176 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
178 $query =
'SELECT mid FROM ecs_part_settings '.
179 'WHERE sid = '.$ilDB->quote($a_server_id,
'integer').
' '.
195 return $this->server_id;
207 $query =
'SELECT * FROM ecs_part_settings '.
208 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' ';
212 $this->export[
$row->mid] =
$row->export;
213 $this->
import[
$row->mid] =
$row->import;
214 $this->import_type[
$row->mid] =
$row->import_type;
215 $this->export_types[
$row->mid] = (array) unserialize(
$row->export_types);
216 $this->import_types[
$row->mid] = (array) unserialize(
$row->import_types);
228 foreach($a_mids as $mid)
230 if($this->
import[$mid])
247 foreach($this->export as $mid => $enabled)
255 #return $this->enabled ? $this->enabled : array();
268 return $this->export[$a_mid] ?
true :
false;
280 $this->enabled = (array) $a_parts;