3 declare(strict_types=1);
62 public function __construct(
int $a_rbac_id,
int $a_obj_id,
string $a_type)
64 if ($a_obj_id === 0) {
65 $a_obj_id = $a_rbac_id;
68 $this->rbac_id = $a_rbac_id;
69 $this->obj_id = $a_obj_id;
70 $this->obj_type = $a_type;
72 $this->md_obj =
new ilMD($a_rbac_id, $a_obj_id, $a_type);
76 public function setTitle(
string $a_title): void
78 $this->title = $a_title;
88 $this->description = $a_desc;
98 $this->title_lng = $a_lng;
108 $this->title_lng = $a_lng;
118 $this->title_lng = $a_lng;
128 $this->keyword = $a_key;
153 $this->title_lng = $a_lng;
163 $this->catalog = $a_cat;
168 return $this->catalog ?:
'ILIAS';
173 $this->entry = $a_entry;
183 $this->structure = $a_structure;
188 return $this->structure ?:
'Hierarchical';
199 $md_gen = $this->md_obj->addGeneral();
202 $md_gen->setTitle($this->
getTitle());
206 $md_ide = $md_gen->addIdentifier();
208 $md_ide->setEntry($this->
getEntry());
211 $md_lng = $md_gen->addLanguage();
215 $md_des = $md_gen->addDescription();
220 $md_key = $md_gen->addKeyword();
setKeywordLanguage(string $a_lng)
__construct(int $a_rbac_id, int $a_obj_id, string $a_type)
setStructure(string $a_structure)
setDescription(string $a_desc)
setDescriptionLanguage(string $a_lng)
setCatalog(string $a_cat)
setEntry(string $a_entry)
setTitle(string $a_title)
setLanguage(string $a_lng)
setKeyword(string $a_key)
setTitleLanguage(string $a_lng)