◆ __construct()
ILIAS\Skill\Usage\UsagesUI::__construct |
( |
string |
$cskill_id, |
|
|
array |
$usage, |
|
|
string |
$mode = "" |
|
) |
| |
◆ getUsagesListing()
ILIAS\Skill\Usage\UsagesUI::getUsagesListing |
( |
| ) |
|
|
protected |
Definition at line 82 of file class.UsagesUI.php.
82 : UI\Component\Listing\CharacteristicValue\Text
83 {
84 $types = [];
85 foreach ($this->usage as $type => $type_usages) {
86 $types[$this->usage_manager->getTypeInfoString($type)] = count($type_usages) . " " .
87 $this->usage_manager->getObjTypeString($type);
88 }
89
90 $listing = $this->ui_fac->listing()->characteristicValue()->text($types);
91
92 return $listing;
93 }
Referenced by ILIAS\Skill\Usage\UsagesUI\render().
◆ render()
ILIAS\Skill\Usage\UsagesUI::render |
( |
| ) |
|
Definition at line 63 of file class.UsagesUI.php.
63 : string
64 {
65 $tree = $this->tree_repo->getTreeForNodeId($this->skill_id);
66 if ($this->mode === "tree") {
67 $tree_obj = $this->tree_manager->getTree($tree->getTreeId());
69 } else {
71 }
72
73
74
76
77 $panel = $this->ui_fac->panel()->standard($title, $listing);
78
79 return $this->ui_ren->render($panel);
80 }
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
References ilSkillTreeNode\_lookupTitle(), and ILIAS\Skill\Usage\UsagesUI\getUsagesListing().
◆ $lng
◆ $mode
string ILIAS\Skill\Usage\UsagesUI::$mode = "" |
|
protected |
◆ $skill_id
int ILIAS\Skill\Usage\UsagesUI::$skill_id = 0 |
|
protected |
◆ $tree_manager
◆ $tree_repo
◆ $tref_id
int ILIAS\Skill\Usage\UsagesUI::$tref_id = 0 |
|
protected |
◆ $ui_fac
UI Factory ILIAS\Skill\Usage\UsagesUI::$ui_fac |
|
protected |
◆ $ui_ren
◆ $usage
array ILIAS\Skill\Usage\UsagesUI::$usage = [] |
|
protected |
◆ $usage_manager
The documentation for this class was generated from the following file: