48 $this->server_id = $a_server_id;
61 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Using deprecated call');
63 return self::getInstanceByServerId(15);
73 if (isset(self::$instances[$a_server_id])) {
74 return self::$instances[$a_server_id];
89 $query =
'SELECT mid FROM ecs_part_settings ' .
90 'WHERE sid = ' . $ilDB->quote($a_server_id,
'integer');
108 $query =
'SELECT sid,mid,export_types FROM ecs_part_settings ep ' .
109 'JOIN ecs_server es ON ep.sid = es.server_id ' .
110 'WHERE export = ' . $ilDB->quote(1,
'integer') .
' ' .
111 'AND active = ' . $ilDB->quote(1,
'integer') .
' ' .
112 'ORDER BY cname,es.title';
136 $query =
'SELECT DISTINCT(sid) FROM ecs_part_settings ep ' .
137 'JOIN ecs_server es ON ep.sid = es.server_id ' .
138 'WHERE export = ' . $ilDB->quote(1,
'integer') .
' ' .
139 'AND active = ' . $ilDB->quote(1,
'integer') .
' ';
157 $query =
'DELETE from ecs_part_settings ' .
158 'WHERE sid = ' . $ilDB->quote($a_server_id,
'integer');
159 $ilDB->manipulate(
$query);
171 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
173 $query =
'SELECT mid FROM ecs_part_settings ' .
174 'WHERE sid = ' . $ilDB->quote($a_server_id,
'integer') .
' ' .
189 return $this->server_id;
201 $query =
'SELECT * FROM ecs_part_settings ' .
202 'WHERE sid = ' . $ilDB->quote($this->
getServerId(),
'integer') .
' ';
206 $this->
import[
$row->mid] =
$row->import;
207 $this->import_type[
$row->mid] =
$row->import_type;
208 $this->export_types[
$row->mid] = (
array) unserialize(
$row->export_types);
209 $this->import_types[
$row->mid] = (
array) unserialize(
$row->import_types);
221 foreach ($a_mids as $mid) {
222 if ($this->
import[$mid]) {
238 foreach ($this->
export as $mid => $enabled) {
244 #return $this->enabled ? $this->enabled : array(); 257 return $this->
export[$a_mid] ? true :
false;
269 $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.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
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.
Removing first two heading rows for CSV export
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
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.
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.