53 $this->obj_id = $a_obj_id;
70 $query =
"SELECT econtent_id FROM ecs_export ";
74 $econtent_ids[
$row->econtent_id] =
$row->econtent_id;
76 return $econtent_ids ? $econtent_ids : array();
89 $query =
"SELECT obj_id FROM ecs_export ";
93 $obj_ids[] =
$row->obj_id;
95 return $obj_ids ? $obj_ids : array();
110 if(!is_array($a_ids) or !count($a_ids))
114 #$query = "DELETE FROM ecs_export WHERE econtent_id IN (".implode(',',ilUtil::quoteArray($a_ids)).')';
115 $query =
"DELETE FROM ecs_export WHERE ".$ilDB->in(
'econtent_id',$a_ids,
false,
'integer');
132 $query =
"SELECT obj_id FROM ecs_export ".
133 "WHERE econtent_id = ".$ilDB->quote($a_econtent_id,
'integer').
" ";
151 $this->exported = $a_status;
174 $this->econtent_id = $a_id;
198 $query =
"DELETE FROM ecs_export ".
199 "WHERE obj_id = ".$this->db->quote($this->obj_id,
'integer').
" ";
204 $query =
"INSERT INTO ecs_export (obj_id,econtent_id) ".
206 $this->db->quote($this->obj_id,
'integer').
", ".
223 $query =
"SELECT * FROM ecs_export WHERE ".
224 "obj_id = ".$this->db->quote($this->obj_id,
'integer').
" ";
228 $this->econtent_id =
$row->econtent_id;
229 $this->exported =
true;