19 declare(strict_types=1);
31 protected \ilLanguage
$lng;
49 $this->
lng = $DIC->language();
50 $this->ui_fac = $DIC->ui()->factory();
51 $this->ui_ren = $DIC->ui()->renderer();
52 $this->tree_manager = $DIC->skills()->internal()->manager()->getTreeManager();
53 $this->usage_manager = $DIC->skills()->internal()->manager()->getUsageManager();
54 $this->tree_repo = $DIC->skills()->internal()->repo()->getTreeRepo();
56 $id_parts = explode(
":", $cskill_id);
57 $this->skill_id = (
int) $id_parts[0];
58 $this->tref_id = (
int) $id_parts[1];
65 $tree = $this->tree_repo->getTreeForNodeId($this->skill_id);
66 if ($this->mode ===
"tree") {
67 $tree_obj = $this->tree_manager->getTree($tree->getTreeId());
77 $panel = $this->ui_fac->panel()->standard($title, $listing);
79 return $this->ui_ren->render($panel);
85 foreach ($this->usage as $type => $type_usages) {
86 $types[$this->usage_manager->getTypeInfoString($type)] = count($type_usages) .
" " .
87 $this->usage_manager->getObjTypeString($type);
90 $listing = $this->ui_fac->listing()->characteristicValue()->text($types);
SkillUsageManager $usage_manager
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
Tree SkillTreeManager $tree_manager
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilSkillTreeRepository $tree_repo
__construct(string $cskill_id, array $usage, string $mode="")