ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilMDTechnical Class Reference
+ Inheritance diagram for ilMDTechnical:
+ Collaboration diagram for ilMDTechnical:

Public Member Functions

 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)
 
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
 __construct ($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)
 
 __construct ($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)
 

Static Public Member Functions

static _getId ($a_rbac_id, $a_obj_id)
 

Additional Inherited Members

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

Detailed Description

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

Member Function Documentation

◆ __getFields() [1/2]

ilMDTechnical::__getFields ( )

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

308 {
309 return array('rbac_id' => array('integer',$this->getRBACId()),
310 'obj_id' => array('integer',$this->getObjId()),
311 'obj_type' => array('text',$this->getObjType()),
312 't_size' => array('text',$this->getSize()),
313 'ir' => array('text',$this->getInstallationRemarks()),
314 'ir_language' => array('text',$this->getInstallationRemarksLanguageCode()),
315 'opr' => array('text',$this->getOtherPlatformRequirements()),
316 'opr_language' => array('text',$this->getOtherPlatformRequirementsLanguageCode()),
317 'duration' => array('text',$this->getDuration()));
318 }
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 292 of file class.ilMDTechnical.php.

293 {
294 return array('rbac_id' => $this->getRBACId(),
295 'obj_id' => $this->getObjId(),
296 'obj_type' => ilUtil::prepareDBString($this->getObjType()),
297 'size' => ilUtil::prepareDBString($this->getSize()),
298 'installation_remarks' => ilUtil::prepareDBString($this->getInstallationRemarks()),
299 'installation_remarks_language' => ilUtil::prepareDBString($this->getInstallationRemarksLanguageCode()),
300 'other_platform_requirements' => ilUtil::prepareDBString($this->getOtherPlatformRequirements()),
301 'other_platform_requirements_language' => ilUtil::prepareDBString($this->getOtherPlatformRequirementsLanguageCode()),
302 'duration' => ilUtil::prepareDBString($this->getDuration()));
303 }
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]

static ilMDTechnical::_getId (   $a_rbac_id,
  $a_obj_id 
)
static

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

423 {
424 global $ilDB;
425
426 $query = "SELECT meta_technical_id FROM il_meta_technical ".
427 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,'integer')." ".
428 "AND obj_id = ".$ilDB->quote($a_obj_id ,'integer');
429
430 $res = $ilDB->query($query);
431 while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
432 {
433 return $row->meta_technical_id;
434 }
435 return false;
436 }
global $ilDB

References $ilDB, $query, $res, $row, and ilDBConstants\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 404 of file class.ilMDTechnical.php.

405 {
406 global $ilDB;
407
408 $query = "SELECT meta_technical_id FROM il_meta_technical ".
409 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id)." ".
410 "AND obj_id = ".$ilDB->quote($a_obj_id);
411
412 $res = $ilDB->query($query);
413 while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
414 {
415 return $row->meta_technical_id;
416 }
417 return false;
418 }

References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

◆ addFormat() [1/2]

& ilMDTechnical::addFormat ( )

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

72 {
73 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
74
75 $for = new ilMDFormat($this->getRBACId(),$this->getObjId(),$this->getObjType());
76
77 return $for;
78 }

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

+ Here is the call graph for this function:

◆ addFormat() [2/2]

& ilMDTechnical::addFormat ( )

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

56 {
57 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
58
59 $for = new ilMDFormat($this->getRBACId(),$this->getObjId(),$this->getObjType());
60
61 return $for;
62 }

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

+ Here is the call graph for this function:

◆ addLocation() [1/2]

& ilMDTechnical::addLocation ( )

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

99 {
100 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
101
102 $loc = new ilMDLocation($this->getRBACId(),$this->getObjId(),$this->getObjType());
103 $loc->setParentId($this->getMetaId());
104 $loc->setParentType('meta_technical');
105
106 return $loc;
107 }

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 82 of file class.ilMDTechnical.php.

83 {
84 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
85
86 $loc = new ilMDLocation($this->getRBACId(),$this->getObjId(),$this->getObjType());
87 $loc->setParentId($this->getMetaId());
88 $loc->setParentType('meta_technical');
89
90 return $loc;
91 }

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 158 of file class.ilMDTechnical.php.

159 {
160 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
161
162 $orc = new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
163 $orc->setParentId($this->getMetaId());
164 $orc->setParentType('meta_technical');
165
166 return $orc;
167 }

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 142 of file class.ilMDTechnical.php.

143 {
144 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
145
146 $orc = new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
147 $orc->setParentId($this->getMetaId());
148 $orc->setParentType('meta_technical');
149
150 return $orc;
151 }

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 127 of file class.ilMDTechnical.php.

128 {
129 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
130
131 $rec = new ilMDRequirement($this->getRBACId(),$this->getObjId(),$this->getObjType());
132 $rec->setParentId($this->getMetaId());
133 $rec->setParentType('meta_technical');
134
135 return $rec;
136 }

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 111 of file class.ilMDTechnical.php.

112 {
113 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
114
115 $rec = new ilMDRequirement($this->getRBACId(),$this->getObjId(),$this->getObjType());
116 $rec->setParentId($this->getMetaId());
117 $rec->setParentType('meta_technical');
118
119 return $rec;
120 }

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 268 of file class.ilMDTechnical.php.

269 {
270 global $ilDB;
271
272 if($this->getMetaId())
273 {
274 $query = "DELETE FROM il_meta_technical ".
275 "WHERE meta_technical_id = ".$ilDB->quote($this->getMetaId() ,'integer');
276 $res = $ilDB->manipulate($query);
277
278 foreach($this->getFormatIds() as $id)
279 {
280 $for =& $this->getFormat($id);
281 $for->delete();
282 }
283
284 foreach($this->getLocationIds() as $id)
285 {
286 $loc =& $this->getLocation($id);
287 $loc->delete();
288 }
289 foreach($this->getRequirementIds() as $id)
290 {
291 $req =& $this->getRequirement($id);
292 $req->delete();
293 }
294 foreach($this->getOrCompositeIds() as $id)
295 {
296 $orc =& $this->getOrComposite($id);
297 $orc->delete();
298 }
299
300 return true;
301
302 }
303 return false;
304 }
& 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 252 of file class.ilMDTechnical.php.

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

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 230 of file class.ilMDTechnical.php.

231 {
232 return $this->duration;
233 }

References $duration.

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getDuration() [2/2]

ilMDTechnical::getDuration ( )

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

215 {
216 return $this->duration;
217 }

References $duration.

◆ getFormat() [1/2]

& ilMDTechnical::getFormat (   $a_format_id)

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

59 {
60 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
61
62 if(!$a_format_id)
63 {
64 return false;
65 }
66 $for = new ilMDFormat($this,$a_format_id);
67 $for->setMetaId($a_format_id);
68
69 return $for;
70 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getFormat() [2/2]

& ilMDTechnical::getFormat (   $a_format_id)

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

43 {
44 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
45
46 if(!$a_format_id)
47 {
48 return false;
49 }
50 $for = new ilMDFormat($this,$a_format_id);
51 $for->setMetaId($a_format_id);
52
53 return $for;
54 }

◆ getFormatIds() [1/2]

& ilMDTechnical::getFormatIds ( )

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

53 {
54 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
55
56 return ilMDFormat::_getIds($this->getRBACId(),$this->getObjId());
57 }
static _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 36 of file class.ilMDTechnical.php.

37 {
38 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
39
40 return ilMDFormat::_getIds($this->getRBACId(),$this->getObjId());
41 }

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

+ Here is the call graph for this function:

◆ getInstallationRemarks() [1/2]

ilMDTechnical::getInstallationRemarks ( )

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

183 {
184 return $this->installation_remarks;
185 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getInstallationRemarks() [2/2]

ilMDTechnical::getInstallationRemarks ( )

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

167 {
168 return $this->installation_remarks;
169 }

◆ getInstallationRemarksLanguage() [1/2]

& ilMDTechnical::getInstallationRemarksLanguage ( )

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

194 {
195 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language : false;
196 }

◆ getInstallationRemarksLanguage() [2/2]

& ilMDTechnical::getInstallationRemarksLanguage ( )

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

178 {
179 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language : false;
180 }

◆ getInstallationRemarksLanguageCode() [1/2]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

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

198 {
199 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() : false;
200 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getInstallationRemarksLanguageCode() [2/2]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

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

182 {
183 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() : false;
184 }

◆ getLocation() [1/2]

& ilMDTechnical::getLocation (   $a_location_id)

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

86 {
87 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
88
89 if(!$a_location_id)
90 {
91 return false;
92 }
93 $loc = new ilMDLocation();
94 $loc->setMetaId($a_location_id);
95
96 return $loc;
97 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getLocation() [2/2]

& ilMDTechnical::getLocation (   $a_location_id)

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

70 {
71 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
72
73 if(!$a_location_id)
74 {
75 return false;
76 }
77 $loc = new ilMDLocation();
78 $loc->setMetaId($a_location_id);
79
80 return $loc;
81 }

◆ getLocationIds() [1/2]

& ilMDTechnical::getLocationIds ( )

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

80 {
81 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
82
83 return ilMDLocation::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
84 }
static _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 63 of file class.ilMDTechnical.php.

64 {
65 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLocation.php';
66
67 return ilMDLocation::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
68 }

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 143 of file class.ilMDTechnical.php.

144 {
145 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
146
147 if(!$a_or_composite_id)
148 {
149 return false;
150 }
151 $orc = new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
152 $orc->setOrCompositeId($a_or_composite_id);
153 $orc->setParentId($this->getMetaId());
154 $orc->setParentType('meta_technical');
155
156 return $orc;
157 }

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 127 of file class.ilMDTechnical.php.

128 {
129 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
130
131 if(!$a_or_composite_id)
132 {
133 return false;
134 }
135 $orc = new ilMDOrComposite($this->getRBACId(),$this->getObjId(),$this->getObjType());
136 $orc->setOrCompositeId($a_or_composite_id);
137 $orc->setParentId($this->getMetaId());
138 $orc->setParentType('meta_technical');
139
140 return $orc;
141 }

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 137 of file class.ilMDTechnical.php.

138 {
139 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
140
141 return ilMDOrComposite::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
142 }
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id=0)

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 121 of file class.ilMDTechnical.php.

122 {
123 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDOrComposite.php';
124
125 return ilMDOrComposite::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
126 }

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 205 of file class.ilMDTechnical.php.

206 {
207 return $this->other_platform_requirements;
208 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getOtherPlatformRequirements() [2/2]

ilMDTechnical::getOtherPlatformRequirements ( )

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

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

◆ getOtherPlatformRequirementsLanguage() [1/2]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

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

217 {
218 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language : false;
219 }

◆ getOtherPlatformRequirementsLanguage() [2/2]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

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

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

◆ getOtherPlatformRequirementsLanguageCode() [1/2]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

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

221 {
222 return is_object($this->other_platform_requirements_language)
223 ? $this->other_platform_requirements_language->getLanguageCode()
224 : false;
225 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getOtherPlatformRequirementsLanguageCode() [2/2]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

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

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

◆ getPossibleSubelements()

ilMDTechnical::getPossibleSubelements ( )

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

36 {
37 $subs['Format'] = 'meta_format';
38 $subs['Location'] = 'meta_location';
39 if(!$this->getOrCompositeIds())
40 {
41 $subs['Requirement'] = 'meta_requirement';
42 }
43 if(!$this->getRequirementIds())
44 {
45 $subs['OrComposite'] = 'meta_or_composite';
46 }
47
48 return $subs;
49 }

References getOrCompositeIds(), and getRequirementIds().

+ Here is the call graph for this function:

◆ getRequirement() [1/2]

& ilMDTechnical::getRequirement (   $a_requirement_id)

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

115 {
116 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
117
118 if(!$a_requirement_id)
119 {
120 return false;
121 }
122 $rec = new ilMDRequirement();
123 $rec->setMetaId($a_requirement_id);
124
125 return $rec;
126 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getRequirement() [2/2]

& ilMDTechnical::getRequirement (   $a_requirement_id)

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

99 {
100 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
101
102 if(!$a_requirement_id)
103 {
104 return false;
105 }
106 $rec = new ilMDRequirement();
107 $rec->setMetaId($a_requirement_id);
108
109 return $rec;
110 }

◆ getRequirementIds() [1/2]

& ilMDTechnical::getRequirementIds ( )

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

109 {
110 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
111
112 return ilMDRequirement::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
113 }
static _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 92 of file class.ilMDTechnical.php.

93 {
94 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRequirement.php';
95
96 return ilMDRequirement::_getIds($this->getRBACId(),$this->getObjId(),$this->getMetaId(),'meta_technical');
97 }

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 174 of file class.ilMDTechnical.php.

175 {
176 return $this->size;
177 }
$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 158 of file class.ilMDTechnical.php.

159 {
160 return $this->size;
161 }

References $size.

◆ read() [1/2]

ilMDTechnical::read ( )

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

321 {
322 global $ilDB;
323
324 include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
325
326 if($this->getMetaId())
327 {
328
329 $query = "SELECT * FROM il_meta_technical ".
330 "WHERE meta_technical_id = ".$ilDB->quote($this->getMetaId() ,'integer')." ";
331
332 $res = $ilDB->query($query);
333 while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
334 {
335 $this->setRBACId($row->rbac_id);
336 $this->setObjId($row->obj_id);
337 $this->setObjType($row->obj_type);
338 $this->setSize($row->t_size);
339 $this->setInstallationRemarks($row->ir);
340 $this->setInstallationRemarksLanguage(new ilMDLanguageItem($row->ir_language));
343 $this->setDuration($row->duration);
344 }
345 return true;
346 }
347 return false;
348 }
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, ilDBConstants\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 305 of file class.ilMDTechnical.php.

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

References $ilDB, $query, $res, $row, ilDBConstants\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 237 of file class.ilMDTechnical.php.

238 {
239 global $ilDB;
240
241 $fields = $this->__getFields();
242 $fields['meta_technical_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_technical'));
243
244 if($this->db->insert('il_meta_technical',$fields))
245 {
246 $this->setMetaId($next_id);
247 return $this->getMetaId();
248 }
249 return false;
250 }
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 221 of file class.ilMDTechnical.php.

222 {
223 if($this->db->autoExecute('il_meta_technical',
224 $this->__getFields(),
226 {
227 $this->setMetaId($this->db->getLastInsertId());
228
229 return $this->getMetaId();
230 }
231
232 return false;
233 }

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

+ Here is the call graph for this function:

◆ setDuration() [1/2]

ilMDTechnical::setDuration (   $a_val)

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

227 {
228 $this->duration = $a_val;
229 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDuration() [2/2]

ilMDTechnical::setDuration (   $a_val)

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

211 {
212 $this->duration = $a_val;
213 }

◆ setInstallationRemarks() [1/2]

ilMDTechnical::setInstallationRemarks (   $a_val)

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

179 {
180 $this->installation_remarks = $a_val;
181 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInstallationRemarks() [2/2]

ilMDTechnical::setInstallationRemarks (   $a_val)

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

163 {
164 $this->installation_remarks = $a_val;
165 }

◆ setInstallationRemarksLanguage() [1/2]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

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

187 {
188 if(is_object($lng_obj))
189 {
190 $this->installation_remarks_language =& $lng_obj;
191 }
192 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInstallationRemarksLanguage() [2/2]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

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

171 {
172 if(is_object($lng_obj))
173 {
174 $this->installation_remarks_language =& $lng_obj;
175 }
176 }

◆ setOtherPlatformRequirements() [1/2]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

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

202 {
203 $this->other_platform_requirements = $a_val;
204 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOtherPlatformRequirements() [2/2]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

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

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

◆ setOtherPlatformRequirementsLanguage() [1/2]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

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

210 {
211 if(is_object($lng_obj))
212 {
213 $this->other_platform_requirements_language =& $lng_obj;
214 }
215 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOtherPlatformRequirementsLanguage() [2/2]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

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

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

◆ setSize() [1/2]

ilMDTechnical::setSize (   $a_size)

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

171 {
172 $this->size = $a_size;
173 }
font size
Definition: langcheck.php:162

References size.

Referenced by read().

+ Here is the caller graph for this function:

◆ setSize() [2/2]

ilMDTechnical::setSize (   $a_size)

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

155 {
156 $this->size = $a_size;
157 }

References size.

◆ toXML() [1/2]

ilMDTechnical::toXML ( $writer)

Reimplemented from ilMDBase.

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

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

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 341 of file class.ilMDTechnical.php.

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

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 252 of file class.ilMDTechnical.php.

253 {
254 global $ilDB;
255
256 if($this->getMetaId())
257 {
258 if($this->db->update('il_meta_technical',
259 $this->__getFields(),
260 array("meta_technical_id" => array('integer',$this->getMetaId()))))
261 {
262 return true;
263 }
264 }
265 return false;
266 }

References $ilDB, and ilMDBase\getMetaId().

+ Here is the call graph for this function:

◆ update() [2/2]

ilMDTechnical::update ( )

Reimplemented from ilMDBase.

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

236 {
237 global $ilDB;
238
239 if($this->getMetaId())
240 {
241 if($this->db->autoExecute('il_meta_technical',
242 $this->__getFields(),
244 "meta_technical_id = ".$ilDB->quote($this->getMetaId())))
245 {
246 return true;
247 }
248 }
249 return false;
250 }

References $ilDB, ilMDBase\getMetaId(), and ilDBConstants\MDB2_AUTOQUERY_UPDATE.

+ Here is the call graph for this function:

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