48 $this->server_id = $a_server_id;
61 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Using deprecated call');
62 $GLOBALS[
'DIC'][
'ilLog']->logStack();
63 return self::getInstanceByServerId(15);
73 if (isset(self::$instances[$a_server_id])) {
74 return self::$instances[$a_server_id];
91 $query =
'SELECT mid FROM ecs_part_settings ' .
92 'WHERE sid = ' .
$ilDB->quote($a_server_id,
'integer');
110 $ilDB = $DIC[
'ilDB'];
112 $query =
'SELECT sid,mid,export_types FROM ecs_part_settings ep ' .
113 'JOIN ecs_server es ON ep.sid = es.server_id ' .
114 'WHERE export = ' .
$ilDB->quote(1,
'integer') .
' ' .
115 'AND active = ' .
$ilDB->quote(1,
'integer') .
' ' .
116 'ORDER BY cname,es.title';
122 if (in_array(
$a_type, (array) unserialize(
$row->export_types))) {
123 $mids[$counter][
'sid'] =
$row->sid;
124 $mids[$counter][
'mid'] =
$row->mid;
140 $ilDB = $DIC[
'ilDB'];
142 $query =
'SELECT DISTINCT(sid) FROM ecs_part_settings ep ' .
143 'JOIN ecs_server es ON ep.sid = es.server_id ' .
144 'WHERE export = ' .
$ilDB->quote(1,
'integer') .
' ' .
145 'AND active = ' .
$ilDB->quote(1,
'integer') .
' ';
163 $ilDB = $DIC[
'ilDB'];
165 $query =
'DELETE from ecs_part_settings ' .
166 'WHERE sid = ' .
$ilDB->quote($a_server_id,
'integer');
179 $ilDB = $DIC[
'ilDB'];
181 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
183 $query =
'SELECT mid FROM ecs_part_settings ' .
184 'WHERE sid = ' .
$ilDB->quote($a_server_id,
'integer') .
' ' .
199 return $this->server_id;
211 $ilDB = $DIC[
'ilDB'];
213 $query =
'SELECT * FROM ecs_part_settings ' .
217 $this->export[
$row->mid] =
$row->export;
218 $this->
import[
$row->mid] =
$row->import;
219 $this->import_type[
$row->mid] =
$row->import_type;
220 $this->export_types[
$row->mid] = (array) unserialize(
$row->export_types);
221 $this->import_types[
$row->mid] = (array) unserialize(
$row->import_types);
233 foreach ($a_mids as $mid) {
234 if ($this->
import[$mid]) {
250 foreach ($this->export as $mid => $enabled) {
256 #return $this->enabled ? $this->enabled : array(); 269 return $this->export[$a_mid] ? true :
false;
281 $this->enabled = (array) $a_parts;
static getExportableParticipants($a_type)
Get participants which are enabled and export is allowed.
static _getInstance()
get instance
getServerId()
Get server id.
setEnabledParticipants($a_parts)
set enabled participants by community
__construct($a_server_id)
Constructor (Singleton)
isEnabled($a_mid)
is partivcipant enabled
static getInstanceByServerId($a_server_id)
Get instance by server id.
foreach($_POST as $key=> $value) $res
static loookupCmsMid($a_server_id)
Lookup mid of current cms participant $ilDB.
static deleteByServer($a_server_id)
Delete by server $ilDB.
static getAvailabeMids($a_server_id)
Get all available mids $ilDB.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
static getExportServers()
Get server ids which allow an export <type> $ilDB.
getEnabledParticipants()
get number of participants that are enabled
isImportAllowed(array $a_mids)
Check if import is allowed for scecific mid.