27 public function __construct($a_obj_id, $a_export_type =
'',$a_filename =
'')
29 $this->obj_id = $a_obj_id;
30 $this->export_type = $a_export_type;
31 $this->file_name = $a_filename;
49 $query =
"SELECT * FROM export_file_info ".
50 "WHERE obj_id = ".$ilDB->quote($a_obj_id,
'integer').
' '.
51 "AND export_type = ".$ilDB->quote($a_type,
'text').
' '.
52 "ORDER BY create_date DESC";
56 if(!$a_version or
$row->version == $a_version)
74 $ilDB->manipulate(
"DELETE FROM export_file_info WHERE obj_id ".$ilDB->quote($a_obj_id));
87 $this->export_type = $a_type;
106 $this->file_name = $a_name;
130 $this->obj_id = $a_id;
148 $this->version = $a_version;
176 $this->create_date = $dt;
192 $query =
"INSERT INTO export_file_info (obj_id, export_type, filename, version, create_date) ".
194 $ilDB->quote($this->
getObjId(),
'integer').
', '.
197 $ilDB->quote($this->
getVersion(),
'text').
', '.
200 $ilDB->manipulate(
$query);
211 $query =
'SELECT obj_id FROM export_file_info '.
212 'WHERE obj_id = '.$ilDB->quote($this->
getObjId(),
'integer').
' '.
213 'AND export_type = '.$ilDB->quote($this->
getExportType(),
'text').
' '.
214 'AND filename = '.$ilDB->quote($this->
getFilename(),
'text');
228 public function delete()
232 $ilDB->manipulate(
'DELETE FROM export_file_info '.
233 'WHERE obj_id = '.$ilDB->quote($this->getObjId(),
'integer').
' '.
234 'AND filename = '.$ilDB->quote($this->getFilename(),
'text')
247 $query =
"SELECT * FROM export_file_info ".
248 "WHERE obj_id = ".$ilDB->quote($this->
getObjId(),
'integer').
' '.
249 "AND export_type = ".$ilDB->quote($this->
getExportType(),
'text').
' '.
250 "AND filename = ".$ilDB->quote($this->
getFilename(),
'text');