18 declare(strict_types=1);
39 $this->server_id = $a_server_id;
40 $this->obj_id = $a_obj_id;
42 $this->db = $DIC->database();
59 $this->server_id = $a_server_id;
70 $this->exported = $a_status;
88 $this->econtent_id = $a_id;
106 $query =
"DELETE FROM ecs_export " .
107 "WHERE obj_id = " . $this->db->quote($this->obj_id,
'integer') .
" " .
108 'AND server_id = ' . $this->db->quote($this->
getServerId());
109 $this->db->manipulate(
$query);
112 $query =
"INSERT INTO ecs_export (server_id,obj_id,econtent_id) " .
114 $this->db->quote($this->server_id,
'integer') .
', ' .
115 $this->db->quote($this->obj_id,
'integer') .
", " .
118 $this->db->manipulate(
$query);
129 $query =
"SELECT * FROM ecs_export WHERE " .
130 "obj_id = " . $this->db->quote($this->obj_id,
'integer') .
" AND " .
131 'server_id = ' . $this->db->quote($this->
getServerId(),
'integer');
134 $this->econtent_id = (
int) $row->econtent_id;
135 $this->exported =
true;
Storage of an ECS exported object.
__construct(int $a_server_id, int $a_obj_id)
setExported(bool $a_status)
Set exported.
getServerId()
Get server id.
isExported()
check if an object is exported or not
getEContentId()
get econtent id
setServerId(int $a_server_id)
Set server id.
setEContentId(int $a_id)
set econtent id