18 declare(strict_types=1);
31 $this->db = $DIC->database();
39 $query =
'SELECT sid,mid,export_types FROM ecs_part_settings ep ' .
40 'JOIN ecs_server es ON ep.sid = es.server_id ' .
41 'WHERE export = ' . $this->db->quote(1,
'integer') .
' ' .
42 'AND active = ' . $this->db->quote(1,
'integer') .
' ' .
43 'ORDER BY cname,es.title';
45 $res = $this->db->query($query);
49 if (in_array($a_type, (array) unserialize($row->export_types, [
'allowed_classes' =>
true]),
true)) {
50 $mids[$counter][
'sid'] = (
int)$row->sid;
51 $mids[$counter][
'mid'] = (
int)$row->mid;
63 $query =
'SELECT DISTINCT(sid) FROM ecs_part_settings ep ' .
64 'JOIN ecs_server es ON ep.sid = es.server_id ' .
65 'WHERE export = ' . $this->db->quote(1,
'integer') .
' ' .
66 'AND active = ' . $this->db->quote(1,
'integer') .
' ';
67 $res = $this->db->query($query);
70 $sids[] = (
int) $row->sid;
getExportableParticipants($a_type)
Get participants which are enabled and export is allowed.
getServersContaingExports()
Get server ids which allow an export.