79 $this->server_id = $a_server_id;
92 if (self::$instances[$a_server_id .
'_' .
$mid]) {
93 return self::$instances[$a_server_id .
'_' .
$mid];
95 return self::$instances[$a_server_id .
'_' .
$mid] =
new self($a_server_id,
$mid);
120 $this->export = $a_status;
130 $this->
import = $a_status;
140 if ($a_type != self::IMPORT_UNCHANGED) {
141 $this->import_type = $a_type;
152 $this->title = $a_title;
167 $this->cname = $a_name;
177 $this->token = $a_stat;
182 $this->export_types = $a_types;
192 $this->import_types = $a_types;
202 $this->dtoken = $a_stat;
228 $query =
'UPDATE ecs_part_settings ' .
231 'mid = ' .
$ilDB->quote((
int) $this->
getMid(),
'integer') .
', ' .
235 'title = ' .
$ilDB->quote($this->
getTitle(),
'text') .
', ' .
241 'WHERE sid = ' .
$ilDB->quote((
int) $this->
getServerId(),
'integer') .
' ' .
242 'AND mid = ' .
$ilDB->quote((
int) $this->
getMid(),
'integer');
253 $query =
'INSERT INTO ecs_part_settings ' .
254 '(sid,mid,export,import,import_type,title,cname,token,dtoken,export_types, import_types) ' .
277 public function delete()
283 $query =
'DELETE FROM ecs_part_settings ' .
285 'AND mid = ' .
$ilDB->quote($this->getMid(),
'integer');
300 $query =
'SELECT * FROM ecs_part_settings ' .
302 'AND mid = ' .
$ilDB->quote($this->
getMid(),
'integer');
329 $query =
'DELETE FROM ecs_events' .
330 ' WHERE server_id = ' .
$ilDB->quote($a_server_id,
'integer');
An exception for terminatinating execution or to throw for unit testing.
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.
isDeprecatedTokenEnabled()
setCommunityName($a_name)
update()
Update Calls create automatically when no entry exists.
enableDeprecatedToken($a_stat)
static getInstance($a_server_id, $mid)
Get instance by server id and mid.
getServerId()
Get server id.
static deleteByServerId($a_server_id)
__construct($a_server_id, $mid)
Constructor.
foreach($_POST as $key=> $value) $res