31 include_once
'class.ilMDBase.php';
38 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
44 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
50 $for->setMetaId($a_format_id);
56 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
64 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
70 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
72 if (!$a_location_id) {
76 $loc->setMetaId($a_location_id);
82 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
86 $loc->setParentType(
'meta_technical');
92 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
98 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
100 if (!$a_requirement_id) {
104 $rec->setMetaId($a_requirement_id);
110 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
114 $rec->setParentType(
'meta_technical');
120 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
126 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
128 if (!$a_or_composite_id) {
132 $orc->setOrCompositeId($a_or_composite_id);
134 $orc->setParentType(
'meta_technical');
140 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
144 $orc->setParentType(
'meta_technical');
152 $this->
size = $a_size;
160 $this->installation_remarks = $a_val;
164 return $this->installation_remarks;
168 if (is_object($lng_obj)) {
169 $this->installation_remarks_language =&$lng_obj;
174 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language :
false;
178 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() :
false;
182 $this->other_platform_requirements = $a_val;
186 return $this->other_platform_requirements;
190 if (is_object($lng_obj)) {
191 $this->other_platform_requirements_language =&$lng_obj;
196 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language :
false;
200 return is_object($this->other_platform_requirements_language)
201 ? $this->other_platform_requirements_language->getLanguageCode()
206 $this->duration = $a_val;
210 return $this->duration;
217 if ($this->db->autoExecute(
219 $this->__getFields(),
222 $this->
setMetaId($this->db->getLastInsertId());
235 if ($this->db->autoExecute(
237 $this->__getFields(),
239 "meta_technical_id = " . $ilDB->quote($this->
getMetaId())
247 public function delete()
252 $query =
"DELETE FROM il_meta_technical " .
253 "WHERE meta_technical_id = " . $ilDB->quote($this->
getMetaId());
298 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
301 $query =
"SELECT * FROM il_meta_technical " .
302 "WHERE meta_technical_id = " . $ilDB->quote($this->
getMetaId());
329 $writer->xmlStartTag(
'Technical');
334 $for->toXML($writer);
338 if (strlen($this->
getSize())) {
339 $writer->xmlElement(
'Size', null, $this->
getSize());
345 $loc->toXML($writer);
351 $req->toXML($writer);
357 $orc->toXML($writer);
363 'InstallationRemarks',
372 'OtherPlatformRequirements',
379 $writer->xmlElement(
'Duration', null, $this->
getDuration());
382 $writer->xmlEndTag(
'Technical');
385 public function _getId($a_rbac_id, $a_obj_id)
389 $query =
"SELECT meta_technical_id FROM il_meta_technical " .
390 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
391 "AND obj_id = " . $ilDB->quote($a_obj_id);
395 return $row->meta_technical_id;
setOtherPlatformRequirementsLanguage(&$lng_obj)
& getOtherPlatformRequirementsLanguage()
getInstallationRemarksLanguageCode()
if(!array_key_exists('StateId', $_REQUEST)) $id
& getLocation($a_location_id)
getOtherPlatformRequirementsLanguageCode()
_getId($a_rbac_id, $a_obj_id)
getOtherPlatformRequirements()
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
setInstallationRemarks($a_val)
& getRequirement($a_requirement_id)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
& getInstallationRemarksLanguage()
Create styles array
The data for the language used.
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
& getOrComposite($a_or_composite_id)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
& getFormat($a_format_id)
setInstallationRemarksLanguage(&$lng_obj)
setOtherPlatformRequirements($a_val)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id=0)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id=0)
Set page orientation and size