3 declare(strict_types=1);
    45         bool $a_in_use = 
false,
    46         bool $a_manage_perm = 
false    50         $this->
ctrl = $DIC->ctrl();
    51         $this->
lng = $DIC->language();
    52         $this->
access = $DIC->access();
    53         $ilCtrl = $DIC->ctrl();
    54         $lng = $DIC->language();
    55         $this->ui_fac = $DIC->ui()->factory();
    56         $this->ui_ren = $DIC->ui()->renderer();
    57         $this->resource_manager = $DIC->skills()->internal()->manager()->getResourceManager();
    59         $this->skill_id = $a_skill_id;
    61         $this->tref_id = $a_tref_id;
    62         $this->in_use = $a_in_use;
    63         $this->manage_perm = $a_manage_perm;
    69         if ($this->tref_id == 0) {
    73         if ($this->tref_id == 0 && !$this->in_use) {
    74             if ($this->manage_perm) {
    82         $this->
addColumn($this->
lng->txt(
"skmg_lp_triggers_level"));
    83         if ($this->manage_perm) {
    91         $this->
setRowTemplate(
"tpl.skill_level_row.html", 
"Services/Skill");
    94         if ($this->tref_id == 0 && !$this->in_use && $this->manage_perm) {
    96             if (count($this->
getData()) > 0) {
   107         if ($a_field == 
"nr") {
   115         $levels = $this->skill->getLevelData();
   119         foreach ($this->resource_manager->getResources($this->skill_id, $this->tref_id) as $level_id => $item) {
   120             $res[$level_id] = $item;
   123         foreach ($levels as $idx => $item) {
   124             if (isset(
$res[$item[
"id"]])) {
   125                 $levels[$idx][
"ressources"] = 
$res[$item[
"id"]];
   132     protected function fillRow(array $a_set): void
   137         if ($this->tref_id == 0 && !$this->in_use) {
   138             if ($this->manage_perm) {
   139                 $this->tpl->setCurrentBlock(
"cb");
   140                 $this->tpl->setVariable(
"CB_ID", $a_set[
"id"]);
   141                 $this->tpl->parseCurrentBlock();
   144             $this->tpl->setCurrentBlock(
"nr");
   145             $this->tpl->setVariable(
"ORD_ID", $a_set[
"id"]);
   146             $this->tpl->setVariable(
"VAL_NR", ((
int) $a_set[
"nr"]) * 10);
   147             if (!$this->manage_perm) {
   148                 $this->tpl->touchBlock(
"disabled");
   150             $this->tpl->parseCurrentBlock();
   153         $this->tpl->setCurrentBlock(
"cmd");
   154         if ($this->manage_perm) {
   155             $this->tpl->setVariable(
"TXT_CMD", 
$lng->
txt(
"edit"));
   157         $ilCtrl->
setParameter($this->parent_obj, 
"level_id", $a_set[
"id"]);
   158         if ($this->tref_id == 0) {
   159             $this->tpl->setVariable(
   161                 $ilCtrl->getLinkTarget($this->parent_obj, 
"editLevel")
   164             $this->tpl->setVariable(
   166                 $ilCtrl->getLinkTarget($this->parent_obj, 
"showLevelResources")
   169         $this->tpl->parseCurrentBlock();
   171         $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
   172         $this->tpl->setVariable(
"TXT_DESCRIPTION", $a_set[
"description"]);
   173         if (isset($a_set[
"ressources"]) && is_array($a_set[
"ressources"])) {
   174             foreach ($a_set[
"ressources"] as $ressource) {
   177                 $robj_icon = $this->ui_fac->symbol()->icon()->standard(
   179                     $this->
lng->txt(
"icon") . 
" " . $this->
lng->txt($robj_type),
   185                 if ($ressource->getImparting()) {
   186                     $this->tpl->setCurrentBlock(
"ressource_sugg");
   187                     $this->tpl->setVariable(
"RSRC_IMG", $this->ui_ren->render($robj_icon));
   188                     $this->tpl->setVariable(
"RSRC_TITLE", $robj_title);
   189                     $this->tpl->setVariable(
"RSRC_URL", $robj_link);
   190                     $this->tpl->parseCurrentBlock();
   193                 if ($ressource->getTrigger()) {
   194                     $this->tpl->setCurrentBlock(
"ressource_trigg");
   195                     $this->tpl->setVariable(
"RSRC_IMG", $this->ui_ren->render($robj_icon));
   196                     $this->tpl->setVariable(
"RSRC_TITLE", $robj_title);
   197                     $this->tpl->setVariable(
"RSRC_URL", $robj_link);
   198                     $this->tpl->parseCurrentBlock();
 
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)
 
setEnableTitle(bool $a_enabletitle)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
setDescription(string $a_val)
 
__construct(int $a_skill_id, $a_parent_obj, string $a_parent_cmd, int $a_tref_id=0, bool $a_in_use=false, bool $a_manage_perm=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupObjId(int $ref_id)
 
static _lookupTitle(int $obj_id)
 
setDefaultOrderField(string $a_defaultorderfield)
 
ILIAS UI Renderer $ui_ren
 
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
numericOrdering(string $a_field)
 
ILIAS Skill Resource SkillResourcesManager $resource_manager
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
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)
 
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
 
static _lookupType(int $id, bool $reference=false)
 
addMultiCommand(string $a_cmd, string $a_text)
 
setEnableHeader(bool $a_enableheader)