31 include_once
'class.ilMDBase.php';
45 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
51 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
58 $for->setMetaId($a_format_id);
64 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
72 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
78 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
85 $loc->setMetaId($a_location_id);
91 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
95 $loc->setParentType(
'meta_technical');
101 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
107 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
109 if(!$a_requirement_id)
114 $rec->setMetaId($a_requirement_id);
120 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
124 $rec->setParentType(
'meta_technical');
130 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
136 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
138 if(!$a_or_composite_id)
143 $orc->setOrCompositeId($a_or_composite_id);
145 $orc->setParentType(
'meta_technical');
151 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
155 $orc->setParentType(
'meta_technical');
163 $this->size = $a_size;
171 $this->installation_remarks = $a_val;
175 return $this->installation_remarks;
179 if(is_object($lng_obj))
181 $this->installation_remarks_language =& $lng_obj;
186 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language :
false;
190 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() :
false;
194 $this->other_platform_requirements = $a_val;
198 return $this->other_platform_requirements;
202 if(is_object($lng_obj))
204 $this->other_platform_requirements_language =& $lng_obj;
209 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language :
false;
213 return is_object($this->other_platform_requirements_language)
214 ? $this->other_platform_requirements_language->getLanguageCode()
219 $this->duration = $a_val;
223 return $this->duration;
230 if($this->db->autoExecute(
'il_meta_technical',
231 $this->__getFields(),
232 DB_AUTOQUERY_INSERT))
234 $this->
setMetaId($this->db->getLastInsertId());
248 if($this->db->autoExecute(
'il_meta_technical',
249 $this->__getFields(),
251 "meta_technical_id = ".$ilDB->quote($this->
getMetaId())))
265 $query =
"DELETE FROM il_meta_technical ".
266 "WHERE meta_technical_id = ".$ilDB->quote($this->
getMetaId());
301 return array(
'rbac_id' => $this->
getRBACId(),
316 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
321 $query =
"SELECT * FROM il_meta_technical ".
322 "WHERE meta_technical_id = ".$ilDB->quote($this->
getMetaId());
350 $writer->xmlStartTag(
'Technical');
356 $for->toXML($writer);
362 $writer->xmlElement(
'Size',null,$this->
getSize());
369 $loc->toXML($writer);
376 $req->toXML($writer);
383 $orc->toXML($writer);
389 $writer->xmlElement(
'InstallationRemarks',
397 $writer->xmlElement(
'OtherPlatformRequirements',
404 $writer->xmlElement(
'Duration',null,$this->
getDuration());
407 $writer->xmlEndTag(
'Technical');
415 $query =
"SELECT meta_technical_id FROM il_meta_technical ".
416 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
417 "AND obj_id = ".$ilDB->quote($a_obj_id);
422 return $row->meta_technical_id;