31 include_once
'class.ilMDBase.php';
44 $subs[
'Format'] =
'meta_format';
45 $subs[
'Location'] =
'meta_location';
48 $subs[
'Requirement'] =
'meta_requirement';
52 $subs[
'OrComposite'] =
'meta_or_composite';
61 include_once
'Services/MetaData/classes/class.ilMDFormat.php';
67 include_once
'Services/MetaData/classes/class.ilMDFormat.php';
74 $for->setMetaId($a_format_id);
80 include_once
'Services/MetaData/classes/class.ilMDFormat.php';
88 include_once
'Services/MetaData/classes/class.ilMDLocation.php';
94 include_once
'Services/MetaData/classes/class.ilMDLocation.php';
101 $loc->setMetaId($a_location_id);
107 include_once
'Services/MetaData/classes/class.ilMDLocation.php';
111 $loc->setParentType(
'meta_technical');
117 include_once
'Services/MetaData/classes/class.ilMDRequirement.php';
123 include_once
'Services/MetaData/classes/class.ilMDRequirement.php';
125 if(!$a_requirement_id)
130 $rec->setMetaId($a_requirement_id);
136 include_once
'Services/MetaData/classes/class.ilMDRequirement.php';
140 $rec->setParentType(
'meta_technical');
146 include_once
'Services/MetaData/classes/class.ilMDOrComposite.php';
152 include_once
'Services/MetaData/classes/class.ilMDOrComposite.php';
154 if(!$a_or_composite_id)
159 $orc->setOrCompositeId($a_or_composite_id);
161 $orc->setParentType(
'meta_technical');
167 include_once
'Services/MetaData/classes/class.ilMDOrComposite.php';
171 $orc->setParentType(
'meta_technical');
179 $this->size = $a_size;
187 $this->installation_remarks = $a_val;
191 return $this->installation_remarks;
195 if(is_object($lng_obj))
197 $this->installation_remarks_language =& $lng_obj;
202 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language :
false;
206 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() :
false;
210 $this->other_platform_requirements = $a_val;
214 return $this->other_platform_requirements;
218 if(is_object($lng_obj))
220 $this->other_platform_requirements_language =& $lng_obj;
225 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language :
false;
229 return is_object($this->other_platform_requirements_language)
230 ? $this->other_platform_requirements_language->getLanguageCode()
235 $this->duration = $a_val;
239 return $this->duration;
249 $fields[
'meta_technical_id'] = array(
'integer',$next_id = $ilDB->nextId(
'il_meta_technical'));
251 if($this->db->insert(
'il_meta_technical',$fields))
265 if($this->db->update(
'il_meta_technical',
266 $this->__getFields(),
267 array(
"meta_technical_id" => array(
'integer',$this->
getMetaId()))))
281 $query =
"DELETE FROM il_meta_technical ".
282 "WHERE meta_technical_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
316 return array(
'rbac_id' => array(
'integer',$this->
getRBACId()),
317 'obj_id' => array(
'integer',$this->
getObjId()),
318 'obj_type' => array(
'text',$this->
getObjType()),
319 't_size' => array(
'text',$this->
getSize()),
331 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
336 $query =
"SELECT * FROM il_meta_technical ".
337 "WHERE meta_technical_id = ".$ilDB->quote($this->
getMetaId() ,
'integer').
" ";
364 $writer->xmlStartTag(
'Technical');
370 $for->toXML($writer);
376 $writer->xmlElement(
'Size',null,$this->
getSize());
383 $loc->toXML($writer);
390 $req->toXML($writer);
397 $orc->toXML($writer);
403 $writer->xmlElement(
'InstallationRemarks',
413 $writer->xmlElement(
'OtherPlatformRequirements',
422 $writer->xmlElement(
'Duration',null,$this->
getDuration());
425 $writer->xmlEndTag(
'Technical');
433 $query =
"SELECT meta_technical_id FROM il_meta_technical ".
434 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
435 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer');
440 return $row->meta_technical_id;