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);
147 return $this->server_id;
159 $query =
'SELECT * FROM ecs_part_settings '.
160 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' ';
164 $this->export[
$row->mid] =
$row->export;
165 $this->
import[
$row->mid] =
$row->import;
166 $this->import_type[
$row->mid] =
$row->import_type;
178 return $this->
import[$a_mid] ?
true :
false;
190 foreach($this->export as $mid => $enabled)
198 #return $this->enabled ? $this->enabled : array();
211 return $this->export[$a_mid] ?
true :
false;
223 $this->enabled = (array) $a_parts;