54 $this->obj_id = $a_obj_id;
70 $query =
"SELECT * FROM ecs_import ";
74 $all[
$row->econtent_id] =
$row->obj_id;
76 return $all ? $all : array();
90 $query =
"SELECT * FROM ecs_import ";
94 $all[
$row->obj_id][
'mid'] =
$row->mid;
95 $all[
$row->obj_id][
'econtent_id'] =
$row->econtent_id;
96 $all[
$row->obj_id][
'obj_id'] =
$row->obj_id;
98 return $all ? $all : array();
113 $query =
"SELECT * FROM ecs_import ".
114 "WHERE mid = ".$ilDB->quote($a_mid,
'integer').
" ";
119 $obj_ids[] =
$row->obj_id;
121 return $obj_ids ? $obj_ids : array();
136 $query =
"SELECT * FROM ecs_import WHERE obj_id = ".$ilDB->quote($a_obj_id,
'integer').
" ";
140 return $row->econtent_id;
155 $query =
"SELECT obj_id FROM ecs_import WHERE econtent_id = ".$ilDB->quote($a_econtent_id,
'integer').
" ";
159 $obj_ids[] =
$row->obj_id;
161 return $obj_ids ? $obj_ids : array();
176 $query =
"SELECT obj_id FROM ecs_import ".
177 "WHERE econtent_id = ".$ilDB->quote($a_econtent_id,
'integer').
" ".
178 "AND mid = ".$ilDB->quote($a_mid,
'integer').
" ";
197 $query =
"SELECT * FROM ecs_emport WHERE obj_id = ".$ilDB->quote($a_obj_id).
" ";
219 $query =
"SELECT mid FROM ecs_import WHERE econtent_id = ".$ilDB->quote($a_econtent_id,
'integer').
" ";
225 return $mids ? $mids : array();
240 $query =
"DELETE FROM ecs_import ".
241 "WHERE obj_id = ".$ilDB->quote($a_obj_id,
'integer').
" ";
270 $this->imported = $a_status;
305 $this->econtent_id = $a_id;
328 $query =
"DELETE FROM ecs_import ".
329 "WHERE obj_id = ".$this->db->quote($this->obj_id,
'integer').
" ";
332 $query =
"INSERT INTO ecs_import (obj_id,mid,econtent_id) ".
334 $this->db->quote($this->obj_id,
'integer').
", ".
335 $this->db->quote($this->mid,
'integer').
", ".
336 $this->db->quote($this->econtent_id,
'integer').
" ".
351 $query =
"SELECT * FROM ecs_import WHERE ".
352 "obj_id = ".$this->db->quote($this->obj_id,
'integer').
" ";
356 $this->econtent_id =
$row->econtent_id;
357 $this->mid =
$row->mid;