19 declare(strict_types=1);
40 $this->server_id = $a_server_id;
41 $this->obj_id = $a_obj_id;
43 $this->db = $DIC->database();
60 $this->server_id = $a_server_id;
71 $this->exported = $a_status;
89 $this->econtent_id = $a_id;
107 $query =
"DELETE FROM ecs_export " .
108 "WHERE obj_id = " . $this->db->quote($this->obj_id,
'integer') .
" " .
109 'AND server_id = ' . $this->db->quote($this->
getServerId());
110 $this->db->manipulate($query);
113 $query =
"INSERT INTO ecs_export (server_id,obj_id,econtent_id) " .
115 $this->db->quote($this->server_id,
'integer') .
', ' .
116 $this->db->quote($this->obj_id,
'integer') .
", " .
119 $this->db->manipulate($query);
130 $query =
"SELECT * FROM ecs_export WHERE " .
131 "obj_id = " . $this->db->quote($this->obj_id,
'integer') .
" AND " .
132 'server_id = ' . $this->db->quote($this->
getServerId(),
'integer');
133 $res = $this->db->query($query);
135 $this->econtent_id = (
int) $row->econtent_id;
136 $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