ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilMDTechnical Class Reference
+ Inheritance diagram for ilMDTechnical:
+ Collaboration diagram for ilMDTechnical:

Public Member Functions

 ilMDTechnical ($a_rbac_id=0, $a_obj_id=0, $a_obj_type='')
 
 getPossibleSubelements ()
 
getFormatIds ()
 
getFormat ($a_format_id)
 
addFormat ()
 
getLocationIds ()
 
getLocation ($a_location_id)
 
addLocation ()
 
getRequirementIds ()
 
getRequirement ($a_requirement_id)
 
addRequirement ()
 
getOrCompositeIds ()
 
getOrComposite ($a_or_composite_id)
 
addOrComposite ()
 
 setSize ($a_size)
 
 getSize ()
 
 setInstallationRemarks ($a_val)
 
 getInstallationRemarks ()
 
 setInstallationRemarksLanguage (&$lng_obj)
 
getInstallationRemarksLanguage ()
 
 getInstallationRemarksLanguageCode ()
 
 setOtherPlatformRequirements ($a_val)
 
 getOtherPlatformRequirements ()
 
 setOtherPlatformRequirementsLanguage (&$lng_obj)
 
getOtherPlatformRequirementsLanguage ()
 
 getOtherPlatformRequirementsLanguageCode ()
 
 setDuration ($a_val)
 
 getDuration ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
 _getId ($a_rbac_id, $a_obj_id)
 
 ilMDTechnical ($a_rbac_id=0, $a_obj_id=0, $a_obj_type='')
 
getFormatIds ()
 
getFormat ($a_format_id)
 
addFormat ()
 
getLocationIds ()
 
getLocation ($a_location_id)
 
addLocation ()
 
getRequirementIds ()
 
getRequirement ($a_requirement_id)
 
addRequirement ()
 
getOrCompositeIds ()
 
getOrComposite ($a_or_composite_id)
 
addOrComposite ()
 
 setSize ($a_size)
 
 getSize ()
 
 setInstallationRemarks ($a_val)
 
 getInstallationRemarks ()
 
 setInstallationRemarksLanguage (&$lng_obj)
 
getInstallationRemarksLanguage ()
 
 getInstallationRemarksLanguageCode ()
 
 setOtherPlatformRequirements ($a_val)
 
 getOtherPlatformRequirements ()
 
 setOtherPlatformRequirementsLanguage (&$lng_obj)
 
getOtherPlatformRequirementsLanguage ()
 
 getOtherPlatformRequirementsLanguageCode ()
 
 setDuration ($a_val)
 
 getDuration ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
 _getId ($a_rbac_id, $a_obj_id)
 
- Public Member Functions inherited from ilMDBase
 ilMDBase ($a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 setExportMode ($a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 
 ilMDBase ($a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 

Additional Inherited Members

- Data Fields inherited from ilMDBase
 $rbac_id
 
 $obj_id
 
 $obj_type
 
 $export_mode = false
 

Detailed Description

Definition at line 33 of file class.ilMDTechnical.php.

Member Function Documentation

◆ __getFields() [1/2]

ilMDTechnical::__getFields ( )

Definition at line 314 of file class.ilMDTechnical.php.

315 {
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()),
320 'ir' => array('text',$this->getInstallationRemarks()),
321 'ir_language' => array('text',$this->getInstallationRemarksLanguageCode()),
322 'opr' => array('text',$this->getOtherPlatformRequirements()),
323 'opr_language' => array('text',$this->getOtherPlatformRequirementsLanguageCode()),
324 'duration' => array('text',$this->getDuration()));
325 }
getOtherPlatformRequirementsLanguageCode()

References getDuration(), getInstallationRemarks(), getInstallationRemarksLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), getOtherPlatformRequirements(), getOtherPlatformRequirementsLanguageCode(), ilMDBase\getRBACId(), and getSize().

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __getFields() [2/2]

ilMDTechnical::__getFields ( )

Definition at line 299 of file class.ilMDTechnical.php.

300 {
301 return array('rbac_id' => $this->getRBACId(),
302 'obj_id' => $this->getObjId(),
303 'obj_type' => ilUtil::prepareDBString($this->getObjType()),
304 'size' => ilUtil::prepareDBString($this->getSize()),
305 'installation_remarks' => ilUtil::prepareDBString($this->getInstallationRemarks()),
306 'installation_remarks_language' => ilUtil::prepareDBString($this->getInstallationRemarksLanguageCode()),
307 'other_platform_requirements' => ilUtil::prepareDBString($this->getOtherPlatformRequirements()),
308 'other_platform_requirements_language' => ilUtil::prepareDBString($this->getOtherPlatformRequirementsLanguageCode()),
309 'duration' => ilUtil::prepareDBString($this->getDuration()));
310 }
static prepareDBString($a_str)
prepare a string for db writing (insert/update)

References getDuration(), getInstallationRemarks(), getInstallationRemarksLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), getOtherPlatformRequirements(), getOtherPlatformRequirementsLanguageCode(), ilMDBase\getRBACId(), getSize(), and ilUtil\prepareDBString().

+ Here is the call graph for this function:

◆ _getId() [1/2]

ilMDTechnical::_getId (   $a_rbac_id,
  $a_obj_id 
)

Definition at line 429 of file class.ilMDTechnical.php.

430 {
431 global $ilDB;
432
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');
436
437 $res = $ilDB->query($query);
438 while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
439 {
440 return $row->meta_technical_id;
441 }
442 return false;
443 }
const DB_FETCHMODE_OBJECT
Definition: class.ilDB.php:11
global $ilDB

References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilMD\getTechnical().

+ Here is the caller graph for this function:

◆ _getId() [2/2]

ilMDTechnical::_getId (   $a_rbac_id,
  $a_obj_id 
)

Definition at line 411 of file class.ilMDTechnical.php.

412 {
413 global $ilDB;
414
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);
418
419 $res = $ilDB->query($query);
420 while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
421 {
422 return $row->meta_technical_id;
423 }
424 return false;
425 }

References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.

◆ addFormat() [1/2]

& ilMDTechnical::addFormat ( )

Definition at line 78 of file class.ilMDTechnical.php.

79 {
80 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
81
82 $for =& new ilMDFormat($this->getRBACId(),$this->getObjId(),$this->getObjType());
83
84 return $for;
85 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addFormat() [2/2]

& ilMDTechnical::addFormat ( )

Definition at line 62 of file class.ilMDTechnical.php.

63 {
64 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
65
66 $for =& new ilMDFormat($this->getRBACId(),$this->getObjId(),$this->getObjType());
67
68 return $for;
69 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addLocation() [1/2]

& ilMDTechnical::addLocation ( )

Definition at line 105 of file class.ilMDTechnical.php.

106 {
107 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
108
109 $loc =& new ilMDLocation($this->getRBACId(),$this->getObjId(),$this->getObjType());
110 $loc->setParentId($this->getMetaId());
111 $loc->setParentType('meta_technical');
112
113 return $loc;
114 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addLocation() [2/2]

& ilMDTechnical::addLocation ( )

Definition at line 89 of file class.ilMDTechnical.php.

90 {
91 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
92
93 $loc =& new ilMDLocation($this->getRBACId(),$this->getObjId(),$this->getObjType());
94 $loc->setParentId($this->getMetaId());
95 $loc->setParentType('meta_technical');
96
97 return $loc;
98 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addOrComposite() [1/2]

& ilMDTechnical::addOrComposite ( )

Definition at line 165 of file class.ilMDTechnical.php.

166 {
167 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
168
169 $orc =& new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
170 $orc->setParentId($this->getMetaId());
171 $orc->setParentType('meta_technical');
172
173 return $orc;
174 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addOrComposite() [2/2]

& ilMDTechnical::addOrComposite ( )

Definition at line 149 of file class.ilMDTechnical.php.

150 {
151 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
152
153 $orc =& new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
154 $orc->setParentId($this->getMetaId());
155 $orc->setParentType('meta_technical');
156
157 return $orc;
158 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRequirement() [1/2]

& ilMDTechnical::addRequirement ( )

Definition at line 134 of file class.ilMDTechnical.php.

135 {
136 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
137
138 $rec =& new ilMDRequirement($this->getRBACId(),$this->getObjId(),$this->getObjType());
139 $rec->setParentId($this->getMetaId());
140 $rec->setParentType('meta_technical');
141
142 return $rec;
143 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRequirement() [2/2]

& ilMDTechnical::addRequirement ( )

Definition at line 118 of file class.ilMDTechnical.php.

119 {
120 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
121
122 $rec =& new ilMDRequirement($this->getRBACId(),$this->getObjId(),$this->getObjType());
123 $rec->setParentId($this->getMetaId());
124 $rec->setParentType('meta_technical');
125
126 return $rec;
127 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ delete() [1/2]

ilMDTechnical::delete ( )

Reimplemented from ilMDBase.

Definition at line 275 of file class.ilMDTechnical.php.

276 {
277 global $ilDB;
278
279 if($this->getMetaId())
280 {
281 $query = "DELETE FROM il_meta_technical ".
282 "WHERE meta_technical_id = ".$ilDB->quote($this->getMetaId() ,'integer');
283 $res = $ilDB->manipulate($query);
284
285 foreach($this->getFormatIds() as $id)
286 {
287 $for =& $this->getFormat($id);
288 $for->delete();
289 }
290
291 foreach($this->getLocationIds() as $id)
292 {
293 $loc =& $this->getLocation($id);
294 $loc->delete();
295 }
296 foreach($this->getRequirementIds() as $id)
297 {
298 $req =& $this->getRequirement($id);
299 $req->delete();
300 }
301 foreach($this->getOrCompositeIds() as $id)
302 {
303 $orc =& $this->getOrComposite($id);
304 $orc->delete();
305 }
306
307 return true;
308
309 }
310 return false;
311 }
& getOrComposite($a_or_composite_id)
& getFormat($a_format_id)
& getRequirement($a_requirement_id)
& getLocation($a_location_id)

References $ilDB, $query, $res, getFormat(), getFormatIds(), getLocation(), getLocationIds(), ilMDBase\getMetaId(), getOrComposite(), getOrCompositeIds(), getRequirement(), and getRequirementIds().

+ Here is the call graph for this function:

◆ delete() [2/2]

ilMDTechnical::delete ( )

Reimplemented from ilMDBase.

Definition at line 259 of file class.ilMDTechnical.php.

260 {
261 global $ilDB;
262
263 if($this->getMetaId())
264 {
265 $query = "DELETE FROM il_meta_technical ".
266 "WHERE meta_technical_id = ".$ilDB->quote($this->getMetaId());
267
268 $this->db->query($query);
269
270 foreach($this->getFormatIds() as $id)
271 {
272 $for =& $this->getFormat($id);
273 $for->delete();
274 }
275
276 foreach($this->getLocationIds() as $id)
277 {
278 $loc =& $this->getLocation($id);
279 $loc->delete();
280 }
281 foreach($this->getRequirementIds() as $id)
282 {
283 $req =& $this->getRequirement($id);
284 $req->delete();
285 }
286 foreach($this->getOrCompositeIds() as $id)
287 {
288 $orc =& $this->getOrComposite($id);
289 $orc->delete();
290 }
291
292 return true;
293
294 }
295 return false;
296 }

References $ilDB, $query, getFormat(), getFormatIds(), getLocation(), getLocationIds(), ilMDBase\getMetaId(), getOrComposite(), getOrCompositeIds(), getRequirement(), and getRequirementIds().

+ Here is the call graph for this function:

◆ getDuration() [1/2]

ilMDTechnical::getDuration ( )

Definition at line 237 of file class.ilMDTechnical.php.

238 {
239 return $this->duration;
240 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getDuration() [2/2]

ilMDTechnical::getDuration ( )

Definition at line 221 of file class.ilMDTechnical.php.

222 {
223 return $this->duration;
224 }

◆ getFormat() [1/2]

& ilMDTechnical::getFormat (   $a_format_id)

Definition at line 65 of file class.ilMDTechnical.php.

66 {
67 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
68
69 if(!$a_format_id)
70 {
71 return false;
72 }
73 $for =& new ilMDFormat($this,$a_format_id);
74 $for->setMetaId($a_format_id);
75
76 return $for;
77 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getFormat() [2/2]

& ilMDTechnical::getFormat (   $a_format_id)

Definition at line 49 of file class.ilMDTechnical.php.

50 {
51 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
52
53 if(!$a_format_id)
54 {
55 return false;
56 }
57 $for =& new ilMDFormat($this,$a_format_id);
58 $for->setMetaId($a_format_id);
59
60 return $for;
61 }

◆ getFormatIds() [1/2]

& ilMDTechnical::getFormatIds ( )

Definition at line 59 of file class.ilMDTechnical.php.

60 {
61 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
62
63 return ilMDFormat::_getIds($this->getRBACId(),$this->getObjId());
64 }
_getIds($a_rbac_id, $a_obj_id)

References ilMDFormat\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), and toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFormatIds() [2/2]

& ilMDTechnical::getFormatIds ( )

Definition at line 43 of file class.ilMDTechnical.php.

44 {
45 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
46
47 return ilMDFormat::_getIds($this->getRBACId(),$this->getObjId());
48 }

References ilMDFormat\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getInstallationRemarks() [1/2]

ilMDTechnical::getInstallationRemarks ( )

Definition at line 189 of file class.ilMDTechnical.php.

190 {
191 return $this->installation_remarks;
192 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getInstallationRemarks() [2/2]

ilMDTechnical::getInstallationRemarks ( )

Definition at line 173 of file class.ilMDTechnical.php.

174 {
175 return $this->installation_remarks;
176 }

◆ getInstallationRemarksLanguage() [1/2]

& ilMDTechnical::getInstallationRemarksLanguage ( )

Definition at line 200 of file class.ilMDTechnical.php.

201 {
202 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language : false;
203 }

◆ getInstallationRemarksLanguage() [2/2]

& ilMDTechnical::getInstallationRemarksLanguage ( )

Definition at line 184 of file class.ilMDTechnical.php.

185 {
186 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language : false;
187 }

◆ getInstallationRemarksLanguageCode() [1/2]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

Definition at line 204 of file class.ilMDTechnical.php.

205 {
206 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() : false;
207 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getInstallationRemarksLanguageCode() [2/2]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

Definition at line 188 of file class.ilMDTechnical.php.

189 {
190 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() : false;
191 }

◆ getLocation() [1/2]

& ilMDTechnical::getLocation (   $a_location_id)

Definition at line 92 of file class.ilMDTechnical.php.

93 {
94 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
95
96 if(!$a_location_id)
97 {
98 return false;
99 }
100 $loc =& new ilMDLocation();
101 $loc->setMetaId($a_location_id);
102
103 return $loc;
104 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getLocation() [2/2]

& ilMDTechnical::getLocation (   $a_location_id)

Definition at line 76 of file class.ilMDTechnical.php.

77 {
78 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
79
80 if(!$a_location_id)
81 {
82 return false;
83 }
84 $loc =& new ilMDLocation();
85 $loc->setMetaId($a_location_id);
86
87 return $loc;
88 }

◆ getLocationIds() [1/2]

& ilMDTechnical::getLocationIds ( )

Definition at line 86 of file class.ilMDTechnical.php.

87 {
88 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
89
90 return ilMDLocation::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
91 }
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)

References ilMDLocation\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), and toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocationIds() [2/2]

& ilMDTechnical::getLocationIds ( )

Definition at line 70 of file class.ilMDTechnical.php.

71 {
72 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
73
74 return ilMDLocation::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
75 }

References ilMDLocation\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getOrComposite() [1/2]

& ilMDTechnical::getOrComposite (   $a_or_composite_id)

Definition at line 150 of file class.ilMDTechnical.php.

151 {
152 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
153
154 if(!$a_or_composite_id)
155 {
156 return false;
157 }
158 $orc =& new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
159 $orc->setOrCompositeId($a_or_composite_id);
160 $orc->setParentId($this->getMetaId());
161 $orc->setParentType('meta_technical');
162
163 return $orc;
164 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

Referenced by delete(), and toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOrComposite() [2/2]

& ilMDTechnical::getOrComposite (   $a_or_composite_id)

Definition at line 134 of file class.ilMDTechnical.php.

135 {
136 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
137
138 if(!$a_or_composite_id)
139 {
140 return false;
141 }
142 $orc =& new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
143 $orc->setOrCompositeId($a_or_composite_id);
144 $orc->setParentId($this->getMetaId());
145 $orc->setParentType('meta_technical');
146
147 return $orc;
148 }

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getOrCompositeIds() [1/2]

& ilMDTechnical::getOrCompositeIds ( )

Definition at line 144 of file class.ilMDTechnical.php.

145 {
146 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
147
148 return ilMDOrComposite::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
149 }
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)

References ilMDOrComposite\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), getPossibleSubelements(), and toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOrCompositeIds() [2/2]

& ilMDTechnical::getOrCompositeIds ( )

Definition at line 128 of file class.ilMDTechnical.php.

129 {
130 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
131
132 return ilMDOrComposite::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
133 }

References ilMDOrComposite\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getOtherPlatformRequirements() [1/2]

ilMDTechnical::getOtherPlatformRequirements ( )

Definition at line 212 of file class.ilMDTechnical.php.

213 {
214 return $this->other_platform_requirements;
215 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getOtherPlatformRequirements() [2/2]

ilMDTechnical::getOtherPlatformRequirements ( )

Definition at line 196 of file class.ilMDTechnical.php.

197 {
198 return $this->other_platform_requirements;
199 }

◆ getOtherPlatformRequirementsLanguage() [1/2]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

Definition at line 223 of file class.ilMDTechnical.php.

224 {
225 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language : false;
226 }

◆ getOtherPlatformRequirementsLanguage() [2/2]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

Definition at line 207 of file class.ilMDTechnical.php.

208 {
209 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language : false;
210 }

◆ getOtherPlatformRequirementsLanguageCode() [1/2]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

Definition at line 227 of file class.ilMDTechnical.php.

228 {
229 return is_object($this->other_platform_requirements_language)
230 ? $this->other_platform_requirements_language->getLanguageCode()
231 : false;
232 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getOtherPlatformRequirementsLanguageCode() [2/2]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

Definition at line 211 of file class.ilMDTechnical.php.

212 {
213 return is_object($this->other_platform_requirements_language)
214 ? $this->other_platform_requirements_language->getLanguageCode()
215 : false;
216 }

◆ getPossibleSubelements()

ilMDTechnical::getPossibleSubelements ( )

Definition at line 42 of file class.ilMDTechnical.php.

43 {
44 $subs['Format'] = 'meta_format';
45 $subs['Location'] = 'meta_location';
46 if(!$this->getOrCompositeIds())
47 {
48 $subs['Requirement'] = 'meta_requirement';
49 }
50 if(!$this->getRequirementIds())
51 {
52 $subs['OrComposite'] = 'meta_or_composite';
53 }
54
55 return $subs;
56 }

References getOrCompositeIds(), and getRequirementIds().

+ Here is the call graph for this function:

◆ getRequirement() [1/2]

& ilMDTechnical::getRequirement (   $a_requirement_id)

Definition at line 121 of file class.ilMDTechnical.php.

122 {
123 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
124
125 if(!$a_requirement_id)
126 {
127 return false;
128 }
129 $rec =& new ilMDRequirement();
130 $rec->setMetaId($a_requirement_id);
131
132 return $rec;
133 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getRequirement() [2/2]

& ilMDTechnical::getRequirement (   $a_requirement_id)

Definition at line 105 of file class.ilMDTechnical.php.

106 {
107 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
108
109 if(!$a_requirement_id)
110 {
111 return false;
112 }
113 $rec =& new ilMDRequirement();
114 $rec->setMetaId($a_requirement_id);
115
116 return $rec;
117 }

◆ getRequirementIds() [1/2]

& ilMDTechnical::getRequirementIds ( )

Definition at line 115 of file class.ilMDTechnical.php.

116 {
117 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
118
119 return ilMDRequirement::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
120 }
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id=0)

References ilMDRequirement\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), getPossibleSubelements(), and toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequirementIds() [2/2]

& ilMDTechnical::getRequirementIds ( )

Definition at line 99 of file class.ilMDTechnical.php.

100 {
101 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
102
103 return ilMDRequirement::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
104 }

References ilMDRequirement\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getSize() [1/2]

ilMDTechnical::getSize ( )

Definition at line 181 of file class.ilMDTechnical.php.

182 {
183 return $this->size;
184 }
$size
Definition: RandomTest.php:79

References $size.

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getSize() [2/2]

ilMDTechnical::getSize ( )

Definition at line 165 of file class.ilMDTechnical.php.

166 {
167 return $this->size;
168 }

References $size.

◆ ilMDTechnical() [1/2]

ilMDTechnical::ilMDTechnical (   $a_rbac_id = 0,
  $a_obj_id = 0,
  $a_obj_type = '' 
)

Definition at line 35 of file class.ilMDTechnical.php.

36 {
37 parent::ilMDBase($a_rbac_id,
38 $a_obj_id,
39 $a_obj_type);
40 }

◆ ilMDTechnical() [2/2]

ilMDTechnical::ilMDTechnical (   $a_rbac_id = 0,
  $a_obj_id = 0,
  $a_obj_type = '' 
)

Definition at line 35 of file class.ilMDTechnical.php.

36 {
37 parent::ilMDBase($a_rbac_id,
38 $a_obj_id,
39 $a_obj_type);
40 }

◆ read() [1/2]

ilMDTechnical::read ( )

Definition at line 327 of file class.ilMDTechnical.php.

328 {
329 global $ilDB;
330
331 include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
332
333 if($this->getMetaId())
334 {
335
336 $query = "SELECT * FROM il_meta_technical ".
337 "WHERE meta_technical_id = ".$ilDB->quote($this->getMetaId() ,'integer')." ";
338
339 $res = $ilDB->query($query);
340 while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
341 {
342 $this->setRBACId($row->rbac_id);
343 $this->setObjId($row->obj_id);
344 $this->setObjType($row->obj_type);
345 $this->setSize($row->t_size);
346 $this->setInstallationRemarks($row->ir);
347 $this->setInstallationRemarksLanguage(new ilMDLanguageItem($row->ir_language));
350 $this->setDuration($row->duration);
351 }
352 return true;
353 }
354 return false;
355 }
setObjId($a_id)
setObjType($a_type)
setRBACId($a_id)
setOtherPlatformRequirementsLanguage(&$lng_obj)
setInstallationRemarksLanguage(&$lng_obj)
setOtherPlatformRequirements($a_val)
setInstallationRemarks($a_val)

References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, ilMDBase\getMetaId(), setDuration(), setInstallationRemarks(), setInstallationRemarksLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), setOtherPlatformRequirements(), setOtherPlatformRequirementsLanguage(), ilMDBase\setRBACId(), and setSize().

+ Here is the call graph for this function:

◆ read() [2/2]

ilMDTechnical::read ( )

Definition at line 312 of file class.ilMDTechnical.php.

313 {
314 global $ilDB;
315
316 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
317
318 if($this->getMetaId())
319 {
320
321 $query = "SELECT * FROM il_meta_technical ".
322 "WHERE meta_technical_id = ".$ilDB->quote($this->getMetaId());
323
324
325 $res = $this->db->query($query);
326 while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
327 {
328 $this->setRBACId($row->rbac_id);
329 $this->setObjId($row->obj_id);
330 $this->setObjType($row->obj_type);
331 $this->setSize(ilUtil::stripSlashes($row->size));
332 $this->setInstallationRemarks(ilUtil::stripSlashes($row->installation_remarks));
333 $this->setInstallationRemarksLanguage(new ilMDLanguageItem($row->installation_remarks_language));
334 $this->setOtherPlatformRequirements(ilUtil::stripSlashes($row->other_platform_requirements));
335 $this->setOtherPlatformRequirementsLanguage(new ilMDLanguageItem($row->other_platform_requirements_language));
336 $this->setDuration(ilUtil::stripSlashes($row->duration));
337 }
338 return true;
339 }
340 return false;
341 }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled

References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, ilMDBase\getMetaId(), setDuration(), setInstallationRemarks(), setInstallationRemarksLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), setOtherPlatformRequirements(), setOtherPlatformRequirementsLanguage(), ilMDBase\setRBACId(), setSize(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ save() [1/2]

ilMDTechnical::save ( )

Reimplemented from ilMDBase.

Definition at line 244 of file class.ilMDTechnical.php.

245 {
246 global $ilDB;
247
248 $fields = $this->__getFields();
249 $fields['meta_technical_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_technical'));
250
251 if($this->db->insert('il_meta_technical',$fields))
252 {
253 $this->setMetaId($next_id);
254 return $this->getMetaId();
255 }
256 return false;
257 }
setMetaId($a_meta_id, $a_read_data=true)

References $ilDB, __getFields(), ilMDBase\getMetaId(), and ilMDBase\setMetaId().

+ Here is the call graph for this function:

◆ save() [2/2]

ilMDTechnical::save ( )

Reimplemented from ilMDBase.

Definition at line 228 of file class.ilMDTechnical.php.

229 {
230 if($this->db->autoExecute('il_meta_technical',
231 $this->__getFields(),
232 DB_AUTOQUERY_INSERT))
233 {
234 $this->setMetaId($this->db->getLastInsertId());
235
236 return $this->getMetaId();
237 }
238
239 return false;
240 }

References ilMDBase\getMetaId(), and ilMDBase\setMetaId().

+ Here is the call graph for this function:

◆ setDuration() [1/2]

ilMDTechnical::setDuration (   $a_val)

Definition at line 233 of file class.ilMDTechnical.php.

234 {
235 $this->duration = $a_val;
236 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDuration() [2/2]

ilMDTechnical::setDuration (   $a_val)

Definition at line 217 of file class.ilMDTechnical.php.

218 {
219 $this->duration = $a_val;
220 }

◆ setInstallationRemarks() [1/2]

ilMDTechnical::setInstallationRemarks (   $a_val)

Definition at line 185 of file class.ilMDTechnical.php.

186 {
187 $this->installation_remarks = $a_val;
188 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInstallationRemarks() [2/2]

ilMDTechnical::setInstallationRemarks (   $a_val)

Definition at line 169 of file class.ilMDTechnical.php.

170 {
171 $this->installation_remarks = $a_val;
172 }

◆ setInstallationRemarksLanguage() [1/2]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

Definition at line 193 of file class.ilMDTechnical.php.

194 {
195 if(is_object($lng_obj))
196 {
197 $this->installation_remarks_language =& $lng_obj;
198 }
199 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInstallationRemarksLanguage() [2/2]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

Definition at line 177 of file class.ilMDTechnical.php.

178 {
179 if(is_object($lng_obj))
180 {
181 $this->installation_remarks_language =& $lng_obj;
182 }
183 }

◆ setOtherPlatformRequirements() [1/2]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

Definition at line 208 of file class.ilMDTechnical.php.

209 {
210 $this->other_platform_requirements = $a_val;
211 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOtherPlatformRequirements() [2/2]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

Definition at line 192 of file class.ilMDTechnical.php.

193 {
194 $this->other_platform_requirements = $a_val;
195 }

◆ setOtherPlatformRequirementsLanguage() [1/2]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

Definition at line 216 of file class.ilMDTechnical.php.

217 {
218 if(is_object($lng_obj))
219 {
220 $this->other_platform_requirements_language =& $lng_obj;
221 }
222 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOtherPlatformRequirementsLanguage() [2/2]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

Definition at line 200 of file class.ilMDTechnical.php.

201 {
202 if(is_object($lng_obj))
203 {
204 $this->other_platform_requirements_language =& $lng_obj;
205 }
206 }

◆ setSize() [1/2]

ilMDTechnical::setSize (   $a_size)

Definition at line 177 of file class.ilMDTechnical.php.

178 {
179 $this->size = $a_size;
180 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSize() [2/2]

ilMDTechnical::setSize (   $a_size)

Definition at line 161 of file class.ilMDTechnical.php.

162 {
163 $this->size = $a_size;
164 }

◆ toXML() [1/2]

ilMDTechnical::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 362 of file class.ilMDTechnical.php.

363 {
364 $writer->xmlStartTag('Technical');
365
366 // Format
367 foreach($this->getFormatIds() as $id)
368 {
369 $for =& $this->getFormat($id);
370 $for->toXML($writer);
371 }
372
373 // Size
374 if(strlen($this->getSize()))
375 {
376 $writer->xmlElement('Size',null,$this->getSize());
377 }
378
379 // Location
380 foreach($this->getLocationIds() as $id)
381 {
382 $loc =& $this->getLocation($id);
383 $loc->toXML($writer);
384 }
385
386 // Requirement
387 foreach($this->getRequirementIds() as $id)
388 {
389 $req =& $this->getRequirement($id);
390 $req->toXML($writer);
391 }
392
393 // OrComposite
394 foreach($this->getOrCompositeIds() as $id)
395 {
396 $orc =& $this->getOrComposite($id);
397 $orc->toXML($writer);
398 }
399
400 // InstallationRemarks
401 if(strlen($this->getInstallationRemarks()))
402 {
403 $writer->xmlElement('InstallationRemarks',
404 array('Language' => $this->getInstallationRemarksLanguageCode()
406 : 'en'),
407 $this->getInstallationRemarks());
408 }
409
410 // OtherPlatformRequirements
411 if(strlen($this->getOtherPlatformRequirements()))
412 {
413 $writer->xmlElement('OtherPlatformRequirements',
414 array('Language' => $this->getOtherPlatformRequirementsLanguageCode()
416 : 'en'),
418 }
419 // Duration
420 if(strlen($this->getDuration()))
421 {
422 $writer->xmlElement('Duration',null,$this->getDuration());
423 }
424
425 $writer->xmlEndTag('Technical');
426
427 }

References getDuration(), getFormat(), getFormatIds(), getInstallationRemarks(), getInstallationRemarksLanguageCode(), getLocation(), getLocationIds(), getOrComposite(), getOrCompositeIds(), getOtherPlatformRequirements(), getOtherPlatformRequirementsLanguageCode(), getRequirement(), getRequirementIds(), and getSize().

+ Here is the call graph for this function:

◆ toXML() [2/2]

ilMDTechnical::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 348 of file class.ilMDTechnical.php.

349 {
350 $writer->xmlStartTag('Technical');
351
352 // Foramt
353 foreach($this->getFormatIds() as $id)
354 {
355 $for =& $this->getFormat($id);
356 $for->toXML($writer);
357 }
358
359 // Size
360 if(strlen($this->getSize()))
361 {
362 $writer->xmlElement('Size',null,$this->getSize());
363 }
364
365 // Location
366 foreach($this->getLocationIds() as $id)
367 {
368 $loc =& $this->getLocation($id);
369 $loc->toXML($writer);
370 }
371
372 // Requirement
373 foreach($this->getRequirementIds() as $id)
374 {
375 $req =& $this->getRequirement($id);
376 $req->toXML($writer);
377 }
378
379 // OrComposite
380 foreach($this->getOrCompositeIds() as $id)
381 {
382 $orc =& $this->getOrComposite($id);
383 $orc->toXML($writer);
384 }
385
386 // InstallationRemarks
387 if(strlen($this->getInstallationRemarks()))
388 {
389 $writer->xmlElement('InstallationRemarks',
390 array('Language' => $this->getInstallationRemarksLanguageCode()),
391 $this->getInstallationRemarks());
392 }
393
394 // OtherPlatformRequirements
395 if(strlen($this->getOtherPlatformRequirements()))
396 {
397 $writer->xmlElement('OtherPlatformRequirements',
398 array('Language' => $this->getOtherPlatformRequirementsLanguageCode()),
400 }
401 // Durtation
402 if(strlen($this->getDuration()))
403 {
404 $writer->xmlElement('Duration',null,$this->getDuration());
405 }
406
407 $writer->xmlEndTag('Technical');
408
409 }

References getDuration(), getFormat(), getFormatIds(), getInstallationRemarks(), getInstallationRemarksLanguageCode(), getLocation(), getLocationIds(), getOrComposite(), getOrCompositeIds(), getOtherPlatformRequirements(), getOtherPlatformRequirementsLanguageCode(), getRequirement(), getRequirementIds(), and getSize().

+ Here is the call graph for this function:

◆ update() [1/2]

ilMDTechnical::update ( )

Reimplemented from ilMDBase.

Definition at line 259 of file class.ilMDTechnical.php.

260 {
261 global $ilDB;
262
263 if($this->getMetaId())
264 {
265 if($this->db->update('il_meta_technical',
266 $this->__getFields(),
267 array("meta_technical_id" => array('integer',$this->getMetaId()))))
268 {
269 return true;
270 }
271 }
272 return false;
273 }

References $ilDB, and ilMDBase\getMetaId().

+ Here is the call graph for this function:

◆ update() [2/2]

ilMDTechnical::update ( )

Reimplemented from ilMDBase.

Definition at line 242 of file class.ilMDTechnical.php.

243 {
244 global $ilDB;
245
246 if($this->getMetaId())
247 {
248 if($this->db->autoExecute('il_meta_technical',
249 $this->__getFields(),
250 DB_AUTOQUERY_UPDATE,
251 "meta_technical_id = ".$ilDB->quote($this->getMetaId())))
252 {
253 return true;
254 }
255 }
256 return false;
257 }

References $ilDB, and ilMDBase\getMetaId().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: