ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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)
 
 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)
 
- 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)
 
 __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)
 

Static Public Member Functions

static _getId ($a_rbac_id, $a_obj_id)
 
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/3]

ilMDTechnical::__getFields ( )

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

299 {
300 return array('rbac_id' => array('integer',$this->getRBACId()),
301 'obj_id' => array('integer',$this->getObjId()),
302 'obj_type' => array('text',$this->getObjType()),
303 't_size' => array('text',$this->getSize()),
304 'ir' => array('text',$this->getInstallationRemarks()),
305 'ir_language' => array('text',$this->getInstallationRemarksLanguageCode()),
306 'opr' => array('text',$this->getOtherPlatformRequirements()),
307 'opr_language' => array('text',$this->getOtherPlatformRequirementsLanguageCode()),
308 'duration' => array('text',$this->getDuration()));
309 }
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/3]

ilMDTechnical::__getFields ( )

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

282 {
283 return array('rbac_id' => $this->getRBACId(),
284 'obj_id' => $this->getObjId(),
285 'obj_type' => ilUtil::prepareDBString($this->getObjType()),
286 'size' => ilUtil::prepareDBString($this->getSize()),
287 'installation_remarks' => ilUtil::prepareDBString($this->getInstallationRemarks()),
288 'installation_remarks_language' => ilUtil::prepareDBString($this->getInstallationRemarksLanguageCode()),
289 'other_platform_requirements' => ilUtil::prepareDBString($this->getOtherPlatformRequirements()),
290 'other_platform_requirements_language' => ilUtil::prepareDBString($this->getOtherPlatformRequirementsLanguageCode()),
291 'duration' => ilUtil::prepareDBString($this->getDuration()));
292 }
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:

◆ __getFields() [3/3]

ilMDTechnical::__getFields ( )

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

299 {
300 return array('rbac_id' => array('integer',$this->getRBACId()),
301 'obj_id' => array('integer',$this->getObjId()),
302 'obj_type' => array('text',$this->getObjType()),
303 't_size' => array('text',$this->getSize()),
304 'ir' => array('text',$this->getInstallationRemarks()),
305 'ir_language' => array('text',$this->getInstallationRemarksLanguageCode()),
306 'opr' => array('text',$this->getOtherPlatformRequirements()),
307 'opr_language' => array('text',$this->getOtherPlatformRequirementsLanguageCode()),
308 'duration' => array('text',$this->getDuration()));
309 }

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

+ Here is the call graph for this function:

◆ _getId() [1/3]

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

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

408 {
409 global $DIC;
410
411 $ilDB = $DIC['ilDB'];
412
413 $query = "SELECT meta_technical_id FROM il_meta_technical " .
414 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id, 'integer') . " " .
415 "AND obj_id = " . $ilDB->quote($a_obj_id, 'integer');
416
417 $res = $ilDB->query($query);
418 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
419 return $row->meta_technical_id;
420 }
421 return false;
422 }
$row
$query
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
global $ilDB

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

Referenced by ilMD\getTechnical().

+ Here is the caller graph for this function:

◆ _getId() [2/3]

ilMDTechnical::_getId (   $a_rbac_id,
  $a_obj_id 
)

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

386 {
387 global $ilDB;
388
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);
392
393 $res = $ilDB->query($query);
394 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
395 return $row->meta_technical_id;
396 }
397 return false;
398 }

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

◆ _getId() [3/3]

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

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

408 {
409 global $DIC;
410
411 $ilDB = $DIC['ilDB'];
412
413 $query = "SELECT meta_technical_id FROM il_meta_technical " .
414 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id, 'integer') . " " .
415 "AND obj_id = " . $ilDB->quote($a_obj_id, 'integer');
416
417 $res = $ilDB->query($query);
418 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
419 return $row->meta_technical_id;
420 }
421 return false;
422 }

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

◆ addFormat() [1/3]

& ilMDTechnical::addFormat ( )

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

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

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

+ Here is the call graph for this function:

◆ addFormat() [2/3]

& ilMDTechnical::addFormat ( )

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

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

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

+ Here is the call graph for this function:

◆ addFormat() [3/3]

& ilMDTechnical::addFormat ( )

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

69 {
70 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDFormat.php';
71
72 $for = new ilMDFormat($this->getRBACId(), $this->getObjId(), $this->getObjType());
73
74 return $for;
75 }

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

+ Here is the call graph for this function:

◆ addLocation() [1/3]

& ilMDTechnical::addLocation ( )

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

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

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

+ Here is the call graph for this function:

◆ addLocation() [2/3]

& ilMDTechnical::addLocation ( )

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

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

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

+ Here is the call graph for this function:

◆ addLocation() [3/3]

& ilMDTechnical::addLocation ( )

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

95 {
96 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLocation.php';
97
98 $loc = new ilMDLocation($this->getRBACId(), $this->getObjId(), $this->getObjType());
99 $loc->setParentId($this->getMetaId());
100 $loc->setParentType('meta_technical');
101
102 return $loc;
103 }

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

+ Here is the call graph for this function:

◆ addOrComposite() [1/3]

& ilMDTechnical::addOrComposite ( )

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

153 {
154 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
155
156 $orc = new ilMDOrComposite($this->getRBACId(), $this->getObjId(), $this->getObjType());
157 $orc->setParentId($this->getMetaId());
158 $orc->setParentType('meta_technical');
159
160 return $orc;
161 }

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

+ Here is the call graph for this function:

◆ addOrComposite() [2/3]

& ilMDTechnical::addOrComposite ( )

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

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

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

+ Here is the call graph for this function:

◆ addOrComposite() [3/3]

& ilMDTechnical::addOrComposite ( )

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

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

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

+ Here is the call graph for this function:

◆ addRequirement() [1/3]

& ilMDTechnical::addRequirement ( )

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

123 {
124 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
125
126 $rec = new ilMDRequirement($this->getRBACId(), $this->getObjId(), $this->getObjType());
127 $rec->setParentId($this->getMetaId());
128 $rec->setParentType('meta_technical');
129
130 return $rec;
131 }

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

+ Here is the call graph for this function:

◆ addRequirement() [2/3]

& ilMDTechnical::addRequirement ( )

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

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

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

+ Here is the call graph for this function:

◆ addRequirement() [3/3]

& ilMDTechnical::addRequirement ( )

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

123 {
124 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRequirement.php';
125
126 $rec = new ilMDRequirement($this->getRBACId(), $this->getObjId(), $this->getObjType());
127 $rec->setParentId($this->getMetaId());
128 $rec->setParentType('meta_technical');
129
130 return $rec;
131 }

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

+ Here is the call graph for this function:

◆ delete() [1/3]

ilMDTechnical::delete ( )

Reimplemented from ilMDBase.

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

264 {
265 global $DIC;
266
267 $ilDB = $DIC['ilDB'];
268
269 if ($this->getMetaId()) {
270 $query = "DELETE FROM il_meta_technical " .
271 "WHERE meta_technical_id = " . $ilDB->quote($this->getMetaId(), 'integer');
272 $res = $ilDB->manipulate($query);
273
274 foreach ($this->getFormatIds() as $id) {
275 $for = &$this->getFormat($id);
276 $for->delete();
277 }
278
279 foreach ($this->getLocationIds() as $id) {
280 $loc = &$this->getLocation($id);
281 $loc->delete();
282 }
283 foreach ($this->getRequirementIds() as $id) {
284 $req = &$this->getRequirement($id);
285 $req->delete();
286 }
287 foreach ($this->getOrCompositeIds() as $id) {
288 $orc = &$this->getOrComposite($id);
289 $orc->delete();
290 }
291
292 return true;
293 }
294 return false;
295 }
& getOrComposite($a_or_composite_id)
& getFormat($a_format_id)
& getRequirement($a_requirement_id)
& getLocation($a_location_id)
if(!array_key_exists('StateId', $_REQUEST)) $id
$req
Definition: getUserInfo.php:20

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

+ Here is the call graph for this function:

◆ delete() [2/3]

ilMDTechnical::delete ( )

Reimplemented from ilMDBase.

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

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

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

+ Here is the call graph for this function:

◆ delete() [3/3]

ilMDTechnical::delete ( )

Reimplemented from ilMDBase.

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

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

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

+ Here is the call graph for this function:

◆ getDuration() [1/3]

ilMDTechnical::getDuration ( )

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

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

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getDuration() [2/3]

ilMDTechnical::getDuration ( )

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

209 {
210 return $this->duration;
211 }

◆ getDuration() [3/3]

ilMDTechnical::getDuration ( )

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

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

◆ getFormat() [1/3]

& ilMDTechnical::getFormat (   $a_format_id)

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

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

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getFormat() [2/3]

& 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 return false;
48 }
49 $for = new ilMDFormat($this, $a_format_id);
50 $for->setMetaId($a_format_id);
51
52 return $for;
53 }

◆ getFormat() [3/3]

& ilMDTechnical::getFormat (   $a_format_id)

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

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

◆ getFormatIds() [1/3]

& ilMDTechnical::getFormatIds ( )

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

51 {
52 include_once 'Services/MetaData/classes/class.ilMDFormat.php';
53
54 return ilMDFormat::_getIds($this->getRBACId(), $this->getObjId());
55 }
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/3]

& 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:

◆ getFormatIds() [3/3]

& ilMDTechnical::getFormatIds ( )

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

51 {
52 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDFormat.php';
53
54 return ilMDFormat::_getIds($this->getRBACId(), $this->getObjId());
55 }

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

+ Here is the call graph for this function:

◆ getInstallationRemarks() [1/3]

ilMDTechnical::getInstallationRemarks ( )

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

177 {
178 return $this->installation_remarks;
179 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getInstallationRemarks() [2/3]

ilMDTechnical::getInstallationRemarks ( )

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

163 {
164 return $this->installation_remarks;
165 }

◆ getInstallationRemarks() [3/3]

ilMDTechnical::getInstallationRemarks ( )

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

177 {
178 return $this->installation_remarks;
179 }

◆ getInstallationRemarksLanguage() [1/3]

& ilMDTechnical::getInstallationRemarksLanguage ( )

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

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

◆ getInstallationRemarksLanguage() [2/3]

& ilMDTechnical::getInstallationRemarksLanguage ( )

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

173 {
174 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language : false;
175 }

◆ getInstallationRemarksLanguage() [3/3]

& ilMDTechnical::getInstallationRemarksLanguage ( )

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

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

◆ getInstallationRemarksLanguageCode() [1/3]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

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

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

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getInstallationRemarksLanguageCode() [2/3]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

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

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

◆ getInstallationRemarksLanguageCode() [3/3]

ilMDTechnical::getInstallationRemarksLanguageCode ( )

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

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

◆ getLocation() [1/3]

& ilMDTechnical::getLocation (   $a_location_id)

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

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

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getLocation() [2/3]

& ilMDTechnical::getLocation (   $a_location_id)

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

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

◆ getLocation() [3/3]

& ilMDTechnical::getLocation (   $a_location_id)

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

83 {
84 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLocation.php';
85
86 if (!$a_location_id) {
87 return false;
88 }
89 $loc = new ilMDLocation();
90 $loc->setMetaId($a_location_id);
91
92 return $loc;
93 }

◆ getLocationIds() [1/3]

& ilMDTechnical::getLocationIds ( )

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

77 {
78 include_once 'Services/MetaData/classes/class.ilMDLocation.php';
79
80 return ilMDLocation::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_technical');
81 }
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/3]

& ilMDTechnical::getLocationIds ( )

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

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

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

+ Here is the call graph for this function:

◆ getLocationIds() [3/3]

& ilMDTechnical::getLocationIds ( )

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

77 {
78 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLocation.php';
79
80 return ilMDLocation::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_technical');
81 }

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

+ Here is the call graph for this function:

◆ getOrComposite() [1/3]

& ilMDTechnical::getOrComposite (   $a_or_composite_id)

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

139 {
140 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
141
142 if (!$a_or_composite_id) {
143 return false;
144 }
145 $orc = new ilMDOrComposite($this->getRBACId(), $this->getObjId(), $this->getObjType());
146 $orc->setOrCompositeId($a_or_composite_id);
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().

Referenced by delete(), and toXML().

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

◆ getOrComposite() [2/3]

& ilMDTechnical::getOrComposite (   $a_or_composite_id)

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

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

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

+ Here is the call graph for this function:

◆ getOrComposite() [3/3]

& ilMDTechnical::getOrComposite (   $a_or_composite_id)

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

139 {
140 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDOrComposite.php';
141
142 if (!$a_or_composite_id) {
143 return false;
144 }
145 $orc = new ilMDOrComposite($this->getRBACId(), $this->getObjId(), $this->getObjType());
146 $orc->setOrCompositeId($a_or_composite_id);
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:

◆ getOrCompositeIds() [1/3]

& ilMDTechnical::getOrCompositeIds ( )

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

133 {
134 include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
135
136 return ilMDOrComposite::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_technical');
137 }
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/3]

& ilMDTechnical::getOrCompositeIds ( )

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

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

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

+ Here is the call graph for this function:

◆ getOrCompositeIds() [3/3]

& ilMDTechnical::getOrCompositeIds ( )

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

133 {
134 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDOrComposite.php';
135
136 return ilMDOrComposite::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_technical');
137 }

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

+ Here is the call graph for this function:

◆ getOtherPlatformRequirements() [1/3]

ilMDTechnical::getOtherPlatformRequirements ( )

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

199 {
200 return $this->other_platform_requirements;
201 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getOtherPlatformRequirements() [2/3]

ilMDTechnical::getOtherPlatformRequirements ( )

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

185 {
186 return $this->other_platform_requirements;
187 }

◆ getOtherPlatformRequirements() [3/3]

ilMDTechnical::getOtherPlatformRequirements ( )

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

199 {
200 return $this->other_platform_requirements;
201 }

◆ getOtherPlatformRequirementsLanguage() [1/3]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

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

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

◆ getOtherPlatformRequirementsLanguage() [2/3]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

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

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

◆ getOtherPlatformRequirementsLanguage() [3/3]

& ilMDTechnical::getOtherPlatformRequirementsLanguage ( )

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

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

◆ getOtherPlatformRequirementsLanguageCode() [1/3]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

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

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

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getOtherPlatformRequirementsLanguageCode() [2/3]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

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

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

◆ getOtherPlatformRequirementsLanguageCode() [3/3]

ilMDTechnical::getOtherPlatformRequirementsLanguageCode ( )

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

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

◆ getPossibleSubelements() [1/2]

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 $subs['Requirement'] = 'meta_requirement';
41 }
42 if (!$this->getRequirementIds()) {
43 $subs['OrComposite'] = 'meta_or_composite';
44 }
45
46 return $subs;
47 }

References getOrCompositeIds(), and getRequirementIds().

+ Here is the call graph for this function:

◆ getPossibleSubelements() [2/2]

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 $subs['Requirement'] = 'meta_requirement';
41 }
42 if (!$this->getRequirementIds()) {
43 $subs['OrComposite'] = 'meta_or_composite';
44 }
45
46 return $subs;
47 }

References getOrCompositeIds(), and getRequirementIds().

+ Here is the call graph for this function:

◆ getRequirement() [1/3]

& ilMDTechnical::getRequirement (   $a_requirement_id)

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

111 {
112 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
113
114 if (!$a_requirement_id) {
115 return false;
116 }
117 $rec = new ilMDRequirement();
118 $rec->setMetaId($a_requirement_id);
119
120 return $rec;
121 }

Referenced by delete(), and toXML().

+ Here is the caller graph for this function:

◆ getRequirement() [2/3]

& ilMDTechnical::getRequirement (   $a_requirement_id)

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

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

◆ getRequirement() [3/3]

& ilMDTechnical::getRequirement (   $a_requirement_id)

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

111 {
112 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRequirement.php';
113
114 if (!$a_requirement_id) {
115 return false;
116 }
117 $rec = new ilMDRequirement();
118 $rec->setMetaId($a_requirement_id);
119
120 return $rec;
121 }

◆ getRequirementIds() [1/3]

& ilMDTechnical::getRequirementIds ( )

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

105 {
106 include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
107
108 return ilMDRequirement::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_technical');
109 }
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/3]

& ilMDTechnical::getRequirementIds ( )

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

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

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

+ Here is the call graph for this function:

◆ getRequirementIds() [3/3]

& ilMDTechnical::getRequirementIds ( )

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

105 {
106 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRequirement.php';
107
108 return ilMDRequirement::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_technical');
109 }

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

+ Here is the call graph for this function:

◆ getSize() [1/3]

ilMDTechnical::getSize ( )

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

169 {
170 return $this->size;
171 }
$size
Definition: RandomTest.php:84

References $size.

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getSize() [2/3]

ilMDTechnical::getSize ( )

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

155 {
156 return $this->size;
157 }

References $size.

◆ getSize() [3/3]

ilMDTechnical::getSize ( )

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

169 {
170 return $this->size;
171 }

References $size.

◆ read() [1/3]

ilMDTechnical::read ( )

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

312 {
313 global $DIC;
314
315 $ilDB = $DIC['ilDB'];
316
317 include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
318
319 if ($this->getMetaId()) {
320 $query = "SELECT * FROM il_meta_technical " .
321 "WHERE meta_technical_id = " . $ilDB->quote($this->getMetaId(), 'integer') . " ";
322
323 $res = $ilDB->query($query);
324 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
325 $this->setRBACId($row->rbac_id);
326 $this->setObjId($row->obj_id);
327 $this->setObjType($row->obj_type);
328 $this->setSize($row->t_size);
329 $this->setInstallationRemarks($row->ir);
330 $this->setInstallationRemarksLanguage(new ilMDLanguageItem($row->ir_language));
333 $this->setDuration($row->duration);
334 }
335 return true;
336 }
337 return false;
338 }
setObjId($a_id)
setObjType($a_type)
setRBACId($a_id)
setOtherPlatformRequirementsLanguage(&$lng_obj)
setInstallationRemarksLanguage(&$lng_obj)
setOtherPlatformRequirements($a_val)
setInstallationRemarks($a_val)

References $DIC, $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/3]

ilMDTechnical::read ( )

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

295 {
296 global $ilDB;
297
298 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
299
300 if ($this->getMetaId()) {
301 $query = "SELECT * FROM il_meta_technical " .
302 "WHERE meta_technical_id = " . $ilDB->quote($this->getMetaId());
303
304
305 $res = $this->db->query($query);
306 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
307 $this->setRBACId($row->rbac_id);
308 $this->setObjId($row->obj_id);
309 $this->setObjType($row->obj_type);
310 $this->setSize(ilUtil::stripSlashes($row->size));
311 $this->setInstallationRemarks(ilUtil::stripSlashes($row->installation_remarks));
312 $this->setInstallationRemarksLanguage(new ilMDLanguageItem($row->installation_remarks_language));
313 $this->setOtherPlatformRequirements(ilUtil::stripSlashes($row->other_platform_requirements));
314 $this->setOtherPlatformRequirementsLanguage(new ilMDLanguageItem($row->other_platform_requirements_language));
315 $this->setDuration(ilUtil::stripSlashes($row->duration));
316 }
317 return true;
318 }
319 return false;
320 }
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:

◆ read() [3/3]

ilMDTechnical::read ( )

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

312 {
313 global $DIC;
314
315 $ilDB = $DIC['ilDB'];
316
317 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLanguageItem.php';
318
319 if ($this->getMetaId()) {
320 $query = "SELECT * FROM il_meta_technical " .
321 "WHERE meta_technical_id = " . $ilDB->quote($this->getMetaId(), 'integer') . " ";
322
323 $res = $ilDB->query($query);
324 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
325 $this->setRBACId($row->rbac_id);
326 $this->setObjId($row->obj_id);
327 $this->setObjType($row->obj_type);
328 $this->setSize($row->t_size);
329 $this->setInstallationRemarks($row->ir);
330 $this->setInstallationRemarksLanguage(new ilMDLanguageItem($row->ir_language));
333 $this->setDuration($row->duration);
334 }
335 return true;
336 }
337 return false;
338 }

References $DIC, $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:

◆ save() [1/3]

ilMDTechnical::save ( )

Reimplemented from ilMDBase.

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

230 {
231 global $DIC;
232
233 $ilDB = $DIC['ilDB'];
234
235 $fields = $this->__getFields();
236 $fields['meta_technical_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_technical'));
237
238 if ($this->db->insert('il_meta_technical', $fields)) {
239 $this->setMetaId($next_id);
240 return $this->getMetaId();
241 }
242 return false;
243 }
setMetaId($a_meta_id, $a_read_data=true)

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

+ Here is the call graph for this function:

◆ save() [2/3]

ilMDTechnical::save ( )

Reimplemented from ilMDBase.

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

216 {
217 if ($this->db->autoExecute(
218 'il_meta_technical',
219 $this->__getFields(),
221 )) {
222 $this->setMetaId($this->db->getLastInsertId());
223
224 return $this->getMetaId();
225 }
226
227 return false;
228 }

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

+ Here is the call graph for this function:

◆ save() [3/3]

ilMDTechnical::save ( )

Reimplemented from ilMDBase.

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

230 {
231 global $DIC;
232
233 $ilDB = $DIC['ilDB'];
234
235 $fields = $this->__getFields();
236 $fields['meta_technical_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_technical'));
237
238 if ($this->db->insert('il_meta_technical', $fields)) {
239 $this->setMetaId($next_id);
240 return $this->getMetaId();
241 }
242 return false;
243 }

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

+ Here is the call graph for this function:

◆ setDuration() [1/3]

ilMDTechnical::setDuration (   $a_val)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setDuration() [2/3]

ilMDTechnical::setDuration (   $a_val)

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

205 {
206 $this->duration = $a_val;
207 }

◆ setDuration() [3/3]

ilMDTechnical::setDuration (   $a_val)

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

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

◆ setInstallationRemarks() [1/3]

ilMDTechnical::setInstallationRemarks (   $a_val)

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

173 {
174 $this->installation_remarks = $a_val;
175 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInstallationRemarks() [2/3]

ilMDTechnical::setInstallationRemarks (   $a_val)

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

159 {
160 $this->installation_remarks = $a_val;
161 }

◆ setInstallationRemarks() [3/3]

ilMDTechnical::setInstallationRemarks (   $a_val)

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

173 {
174 $this->installation_remarks = $a_val;
175 }

◆ setInstallationRemarksLanguage() [1/3]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

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

181 {
182 if (is_object($lng_obj)) {
183 $this->installation_remarks_language = &$lng_obj;
184 }
185 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInstallationRemarksLanguage() [2/3]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

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

167 {
168 if (is_object($lng_obj)) {
169 $this->installation_remarks_language = &$lng_obj;
170 }
171 }

◆ setInstallationRemarksLanguage() [3/3]

ilMDTechnical::setInstallationRemarksLanguage ( $lng_obj)

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

181 {
182 if (is_object($lng_obj)) {
183 $this->installation_remarks_language = &$lng_obj;
184 }
185 }

◆ setOtherPlatformRequirements() [1/3]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

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

195 {
196 $this->other_platform_requirements = $a_val;
197 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOtherPlatformRequirements() [2/3]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

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

181 {
182 $this->other_platform_requirements = $a_val;
183 }

◆ setOtherPlatformRequirements() [3/3]

ilMDTechnical::setOtherPlatformRequirements (   $a_val)

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

195 {
196 $this->other_platform_requirements = $a_val;
197 }

◆ setOtherPlatformRequirementsLanguage() [1/3]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setOtherPlatformRequirementsLanguage() [2/3]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

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

189 {
190 if (is_object($lng_obj)) {
191 $this->other_platform_requirements_language = &$lng_obj;
192 }
193 }

◆ setOtherPlatformRequirementsLanguage() [3/3]

ilMDTechnical::setOtherPlatformRequirementsLanguage ( $lng_obj)

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

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

◆ setSize() [1/3]

ilMDTechnical::setSize (   $a_size)

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

165 {
166 $this->size = $a_size;
167 }
font size
Definition: langcheck.php:162

References size.

Referenced by read().

+ Here is the caller graph for this function:

◆ setSize() [2/3]

ilMDTechnical::setSize (   $a_size)

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

151 {
152 $this->size = $a_size;
153 }

References size.

◆ setSize() [3/3]

ilMDTechnical::setSize (   $a_size)

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

165 {
166 $this->size = $a_size;
167 }

References size.

◆ toXML() [1/3]

ilMDTechnical::toXML ( $writer)

Reimplemented from ilMDBase.

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

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

References $id, $req, 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/3]

ilMDTechnical::toXML ( $writer)

Reimplemented from ilMDBase.

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

328 {
329 $writer->xmlStartTag('Technical');
330
331 // Foramt
332 foreach ($this->getFormatIds() as $id) {
333 $for = &$this->getFormat($id);
334 $for->toXML($writer);
335 }
336
337 // Size
338 if (strlen($this->getSize())) {
339 $writer->xmlElement('Size', null, $this->getSize());
340 }
341
342 // Location
343 foreach ($this->getLocationIds() as $id) {
344 $loc = &$this->getLocation($id);
345 $loc->toXML($writer);
346 }
347
348 // Requirement
349 foreach ($this->getRequirementIds() as $id) {
350 $req = &$this->getRequirement($id);
351 $req->toXML($writer);
352 }
353
354 // OrComposite
355 foreach ($this->getOrCompositeIds() as $id) {
356 $orc = &$this->getOrComposite($id);
357 $orc->toXML($writer);
358 }
359
360 // InstallationRemarks
361 if (strlen($this->getInstallationRemarks())) {
362 $writer->xmlElement(
363 'InstallationRemarks',
364 array('Language' => $this->getInstallationRemarksLanguageCode()),
366 );
367 }
368
369 // OtherPlatformRequirements
370 if (strlen($this->getOtherPlatformRequirements())) {
371 $writer->xmlElement(
372 'OtherPlatformRequirements',
373 array('Language' => $this->getOtherPlatformRequirementsLanguageCode()),
375 );
376 }
377 // Durtation
378 if (strlen($this->getDuration())) {
379 $writer->xmlElement('Duration', null, $this->getDuration());
380 }
381
382 $writer->xmlEndTag('Technical');
383 }

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

+ Here is the call graph for this function:

◆ toXML() [3/3]

ilMDTechnical::toXML ( $writer)

Reimplemented from ilMDBase.

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

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

References $id, $req, 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/3]

ilMDTechnical::update ( )

Reimplemented from ilMDBase.

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

246 {
247 global $DIC;
248
249 $ilDB = $DIC['ilDB'];
250
251 if ($this->getMetaId()) {
252 if ($this->db->update(
253 'il_meta_technical',
254 $this->__getFields(),
255 array("meta_technical_id" => array('integer',$this->getMetaId()))
256 )) {
257 return true;
258 }
259 }
260 return false;
261 }

References $DIC, $ilDB, and ilMDBase\getMetaId().

+ Here is the call graph for this function:

◆ update() [2/3]

ilMDTechnical::update ( )

Reimplemented from ilMDBase.

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

231 {
232 global $ilDB;
233
234 if ($this->getMetaId()) {
235 if ($this->db->autoExecute(
236 'il_meta_technical',
237 $this->__getFields(),
239 "meta_technical_id = " . $ilDB->quote($this->getMetaId())
240 )) {
241 return true;
242 }
243 }
244 return false;
245 }

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

+ Here is the call graph for this function:

◆ update() [3/3]

ilMDTechnical::update ( )

Reimplemented from ilMDBase.

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

246 {
247 global $DIC;
248
249 $ilDB = $DIC['ilDB'];
250
251 if ($this->getMetaId()) {
252 if ($this->db->update(
253 'il_meta_technical',
254 $this->__getFields(),
255 array("meta_technical_id" => array('integer',$this->getMetaId()))
256 )) {
257 return true;
258 }
259 }
260 return false;
261 }

References $DIC, $ilDB, and ilMDBase\getMetaId().

+ Here is the call graph for this function:

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