18 declare(strict_types=1);
    41         $this->db = $DIC->database();
    43         $this->server_id = $a_server_id;
    44         $this->obj_id = $a_obj_id;
    51         $this->server_id = $a_server_id;
    64         $this->imported = $a_status;
    69         $this->sub_id = $a_id;
    74         return (isset($this->sub_id) && $this->sub_id !== 
'') ? $this->sub_id : null;
    82         $this->content_id = $a_content_id;
   117         $this->econtent_id = $a_id;
   133         $query = 
"DELETE FROM ecs_import " .
   134             "WHERE obj_id = " . $this->db->quote($this->obj_id, 
'integer') . 
" " .
   135             'AND server_id = ' . $this->db->quote($this->
getServerId(), 
'integer');
   136         $this->db->manipulate($query);
   138         $query = 
"INSERT INTO ecs_import (obj_id,mid,econtent_id,sub_id,server_id,content_id) " .
   140             $this->db->quote($this->obj_id, 
'integer') . 
", " .
   141             $this->db->quote($this->mid, 
'integer') . 
", " .
   142             $this->db->quote($this->econtent_id, 
'text') . 
", " .
   143             $this->db->quote($this->
getSubId(), 
'text') . 
', ' .
   144             $this->db->quote($this->
getServerId(), 
'integer') . 
', ' .
   148         $this->db->manipulate($query);
   158         $query = 
"SELECT * FROM ecs_import WHERE " .
   159             "obj_id = " . $this->db->quote($this->obj_id, 
'integer') . 
" " .
   160             'AND server_id = ' . $this->db->quote($this->
getServerId(), 
'integer');
   161         $res = $this->db->query($query);
   163             $this->econtent_id = $row->econtent_id;
   164             $this->mid = (
int) $row->mid;
   165             $this->sub_id = $row->sub_id;
   166             $this->content_id = $row->content_id;
 setServerId($a_server_id)
 
__construct(int $a_server_id, int $a_obj_id)
 
setImported(bool $a_status)
Set imported. 
 
Storage of ECS imported objects. 
 
getEContentId()
get econtent id 
 
getContentId()
get content id 
 
setContentId($a_content_id)
Set content id. 
 
setEContentId($a_id)
set econtent id