3 declare(strict_types=1);
61 public function __construct(
int $a_rbac_id,
int $a_obj_id,
string $a_type)
63 if ($a_obj_id === 0) {
64 $a_obj_id = $a_rbac_id;
67 $this->rbac_id = $a_rbac_id;
68 $this->obj_id = $a_obj_id;
69 $this->obj_type = $a_type;
71 $this->md_obj =
new ilMD($a_rbac_id, $a_obj_id, $a_type);
75 public function setTitle(
string $a_title): void
77 $this->title = $a_title;
87 $this->description = $a_desc;
97 $this->title_lng = $a_lng;
107 $this->title_lng = $a_lng;
117 $this->title_lng = $a_lng;
127 $this->keyword = $a_key;
152 $this->title_lng = $a_lng;
162 $this->catalog = $a_cat;
167 return $this->catalog ?:
'ILIAS';
172 $this->entry = $a_entry;
182 $this->structure = $a_structure;
187 return $this->structure ?:
'Hierarchical';
198 $md_gen = $this->md_obj->addGeneral();
201 $md_gen->setTitle($this->
getTitle());
205 $md_ide = $md_gen->addIdentifier();
207 $md_ide->setEntry($this->
getEntry());
210 $md_lng = $md_gen->addLanguage();
214 $md_des = $md_gen->addDescription();
219 $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)