31 include_once
'class.ilMDBase.php';
37 $subs[
'Format'] =
'meta_format';
38 $subs[
'Location'] =
'meta_location';
40 $subs[
'Requirement'] =
'meta_requirement';
43 $subs[
'OrComposite'] =
'meta_or_composite';
52 include_once
'Services/MetaData/classes/class.ilMDFormat.php';
58 include_once
'Services/MetaData/classes/class.ilMDFormat.php';
64 $for->setMetaId($a_format_id);
70 include_once
'Services/MetaData/classes/class.ilMDFormat.php';
78 include_once
'Services/MetaData/classes/class.ilMDLocation.php';
84 include_once
'Services/MetaData/classes/class.ilMDLocation.php';
86 if (!$a_location_id) {
90 $loc->setMetaId($a_location_id);
96 include_once
'Services/MetaData/classes/class.ilMDLocation.php';
100 $loc->setParentType(
'meta_technical');
106 include_once
'Services/MetaData/classes/class.ilMDRequirement.php';
112 include_once
'Services/MetaData/classes/class.ilMDRequirement.php';
114 if (!$a_requirement_id) {
118 $rec->setMetaId($a_requirement_id);
124 include_once
'Services/MetaData/classes/class.ilMDRequirement.php';
128 $rec->setParentType(
'meta_technical');
134 include_once
'Services/MetaData/classes/class.ilMDOrComposite.php';
140 include_once
'Services/MetaData/classes/class.ilMDOrComposite.php';
142 if (!$a_or_composite_id) {
146 $orc->setOrCompositeId($a_or_composite_id);
148 $orc->setParentType(
'meta_technical');
154 include_once
'Services/MetaData/classes/class.ilMDOrComposite.php';
158 $orc->setParentType(
'meta_technical');
166 $this->
size = $a_size;
174 $this->installation_remarks = $a_val;
178 return $this->installation_remarks;
182 if (is_object($lng_obj)) {
183 $this->installation_remarks_language =&$lng_obj;
188 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language :
false;
192 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() :
false;
196 $this->other_platform_requirements = $a_val;
200 return $this->other_platform_requirements;
204 if (is_object($lng_obj)) {
205 $this->other_platform_requirements_language =&$lng_obj;
210 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language :
false;
214 return is_object($this->other_platform_requirements_language)
215 ? $this->other_platform_requirements_language->getLanguageCode()
220 $this->duration = $a_val;
224 return $this->duration;
234 $fields[
'meta_technical_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_technical'));
236 if ($this->db->insert(
'il_meta_technical', $fields)) {
248 if ($this->db->update(
250 $this->__getFields(),
259 public function delete()
264 $query =
"DELETE FROM il_meta_technical " .
265 "WHERE meta_technical_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
309 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
312 $query =
"SELECT * FROM il_meta_technical " .
313 "WHERE meta_technical_id = " . $ilDB->quote($this->
getMetaId(),
'integer') .
" ";
339 $writer->xmlStartTag(
'Technical');
344 $for->toXML($writer);
348 if (strlen($this->
getSize())) {
349 $writer->xmlElement(
'Size', null, $this->
getSize());
355 $loc->toXML($writer);
361 $req->toXML($writer);
367 $orc->toXML($writer);
373 'InstallationRemarks',
384 'OtherPlatformRequirements',
393 $writer->xmlElement(
'Duration', null, $this->
getDuration());
396 $writer->xmlEndTag(
'Technical');
399 public static function _getId($a_rbac_id, $a_obj_id)
403 $query =
"SELECT meta_technical_id FROM il_meta_technical " .
404 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id,
'integer') .
" " .
405 "AND obj_id = " . $ilDB->quote($a_obj_id,
'integer');
409 return $row->meta_technical_id;
setOtherPlatformRequirementsLanguage(&$lng_obj)
& getOtherPlatformRequirementsLanguage()
getInstallationRemarksLanguageCode()
if(!array_key_exists('StateId', $_REQUEST)) $id
static _getId($a_rbac_id, $a_obj_id)
& getLocation($a_location_id)
getOtherPlatformRequirementsLanguageCode()
getOtherPlatformRequirements()
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
setInstallationRemarks($a_val)
& getRequirement($a_requirement_id)
& getInstallationRemarksLanguage()
Create styles array
The data for the language used.
& 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