41 bool $a_write_permission =
false 45 $this->
ctrl = $DIC->ctrl();
46 $this->
lng = $DIC->language();
47 $this->
access = $DIC->access();
48 $this->tree = $DIC->repositoryTree();
49 $this->ui_fac = $DIC->ui()->factory();
50 $this->ui_ren = $DIC->ui()->renderer();
52 $ilCtrl = $DIC->ctrl();
53 $lng = $DIC->language();
55 $this->level_id = $a_level_id;
56 $this->write_permission = $a_write_permission;
61 $this->
setData($this->resources->getResourcesOfLevel($this->level_id));
64 if ($this->write_permission) {
71 $this->
addColumn($this->
lng->txt(
"skmg_lp_triggers_level"));
74 $this->
setRowTemplate(
"tpl.level_resources_row.html",
"Services/Skill");
76 if ($this->write_permission) {
82 protected function fillRow(array $a_set): void
91 if ($a_set[
"imparting"]) {
92 $this->tpl->touchBlock(
"sugg_checked");
94 $this->tpl->setCurrentBlock(
"suggested_checkbox");
95 $this->tpl->setVariable(
"SG_ID",
$ref_id);
96 $this->tpl->parseCurrentBlock();
99 if ($a_set[
"trigger"]) {
100 $this->tpl->touchBlock(
"trig_checked");
102 $this->tpl->setCurrentBlock(
"trigger_checkbox");
103 $this->tpl->setVariable(
"TR_ID",
$ref_id);
104 $this->tpl->parseCurrentBlock();
107 $icon = $this->ui_fac->symbol()->icon()->standard(
109 $this->
lng->txt(
"icon") .
" " . $this->
lng->txt($obj_type),
113 $this->tpl->setVariable(
"IMG", $this->ui_ren->render(
$icon));
114 if ($this->write_permission) {
115 $this->tpl->setCurrentBlock(
"checkbox");
116 $this->tpl->setVariable(
"ID",
$ref_id);
117 $this->tpl->parseCurrentBlock();
122 foreach (
$path as $p) {
123 if ($p[
"type"] !=
"root" && $p[
"child"] !=
$ref_id) {
124 $path_items[] = $p[
"title"];
127 $this->tpl->setVariable(
"PATH", implode(
" > ", $path_items));
ILIAS UI Renderer $ui_ren
ilSkillResources $resources
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
static isSupportedObjectType(string $type)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
getPathFull(int $a_endnode_id, int $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $a_parent_obj, string $a_parent_cmd, int $a_skill_id, int $a_tref_id, int $a_level_id, bool $a_write_permission=false)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
static _lookupType(int $id, bool $reference=false)
addMultiCommand(string $a_cmd, string $a_text)