3 declare(strict_types=1);
40 $subs[
'Format'] =
'meta_format';
41 $subs[
'Location'] =
'meta_location';
43 $subs[
'Requirement'] =
'meta_requirement';
46 $subs[
'OrComposite'] =
'meta_or_composite';
68 $for->setMetaId($a_format_id);
90 if (!$a_location_id) {
94 $loc->setMetaId($a_location_id);
103 $loc->setParentType(
'meta_technical');
118 if (!$a_requirement_id) {
122 $rec->setMetaId($a_requirement_id);
131 $rec->setParentType(
'meta_technical');
146 if (!$a_or_composite_id) {
150 $orc->setOrCompositeId($a_or_composite_id);
152 $orc->setParentType(
'meta_technical');
161 $orc->setParentType(
'meta_technical');
169 $this->size = $a_size;
179 $this->installation_remarks = $a_val;
189 $this->installation_remarks_language = $lng_obj;
194 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language : null;
199 return is_object($this->installation_remarks_language) ? $this->installation_remarks_language->getLanguageCode() :
'';
204 $this->other_platform_requirements = $a_val;
214 $this->other_platform_requirements_language = $lng_obj;
219 return is_object($this->other_platform_requirements_language) ? $this->other_platform_requirements_language : null;
224 return is_object($this->other_platform_requirements_language)
225 ? $this->other_platform_requirements_language->getLanguageCode()
231 $this->duration = $a_val;
242 $fields[
'meta_technical_id'] = array(
'integer', $next_id = $this->db->nextId(
'il_meta_technical'));
244 if ($this->db->insert(
'il_meta_technical', $fields)) {
253 return $this->
getMetaId() && $this->db->update(
256 array(
"meta_technical_id" => array(
'integer', $this->
getMetaId()))
260 public function delete():
bool 263 $query =
"DELETE FROM il_meta_technical " .
264 "WHERE meta_technical_id = " . $this->db->quote($this->
getMetaId(),
'integer');
296 'rbac_id' => array(
'integer', $this->
getRBACId()),
297 'obj_id' => array(
'integer', $this->
getObjId()),
298 'obj_type' => array(
'text', $this->
getObjType()),
299 't_size' => array(
'text', $this->
getSize()),
311 $query =
"SELECT * FROM il_meta_technical " .
312 "WHERE meta_technical_id = " . $this->db->quote($this->
getMetaId(),
'integer') .
" ";
317 $this->
setObjId((
int) $row->obj_id);
319 $this->
setSize($row->t_size ??
'');
338 $for->toXML($writer);
349 $loc->toXML($writer);
355 $req->toXML($writer);
361 $orc->toXML($writer);
367 'InstallationRemarks',
378 'OtherPlatformRequirements',
393 public static function _getId(
int $a_rbac_id,
int $a_obj_id):
int 397 $ilDB = $DIC->database();
399 $query =
"SELECT meta_technical_id FROM il_meta_technical " .
400 "WHERE rbac_id = " .
$ilDB->quote($a_rbac_id,
'integer') .
" " .
401 "AND obj_id = " .
$ilDB->quote($a_obj_id,
'integer');
405 return (
int) $row->meta_technical_id;
ilMDLanguageItem $other_platform_requirements_language
setDuration(string $a_val)
getOrComposite(int $a_or_composite_id)
static _getId(int $a_rbac_id, int $a_obj_id)
getInstallationRemarksLanguageCode()
setOtherPlatformRequirementsLanguage(ilMDLanguageItem $lng_obj)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getOtherPlatformRequirementsLanguageCode()
toXML(ilXmlWriter $writer)
getOtherPlatformRequirements()
setOtherPlatformRequirements(string $a_val)
getFormat(int $a_format_id)
string $installation_remarks
catch(\Exception $e) $req
xmlEndTag(string $tag)
Writes an endtag.
setInstallationRemarksLanguage(ilMDLanguageItem $lng_obj)
getInstallationRemarksLanguage()
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type, int $a_or_composite_id=0)
getLocation(int $a_location_id)
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
getRequirement(int $a_requirement_id)
getOtherPlatformRequirementsLanguage()
setInstallationRemarks(string $a_val)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type, int $a_or_composite_id=0)
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
setMetaId(int $a_meta_id, bool $a_read_data=true)
ilMDLanguageItem $installation_remarks_language
setObjType(string $a_type)
string $other_platform_requirements