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;
187 $query =
"INSERT INTO export_file_info (obj_id, export_type, filename, version, create_date) ".
189 $ilDB->quote($this->
getObjId(),
'integer').
', '.
192 $ilDB->quote($this->
getVersion(),
'text').
', '.
195 $ilDB->manipulate(
$query);
202 public function delete()
206 $ilDB->manipulate(
'DELETE FROM export_file_info '.
207 'WHERE obj_id = '.$ilDB->quote($this->getObjId(),
'integer').
' '.
208 'AND filename = '.$ilDB->quote($this->getFilename(),
'text')
221 $query =
"SELECT * FROM export_file_info ".
222 "WHERE obj_id = ".$ilDB->quote($this->
getObjId(),
'integer').
' '.
223 "AND export_type = ".$ilDB->quote($this->
getExportType(),
'text').
' '.
224 "AND filename = ".$ilDB->quote($this->
getFilename(),
'text');