52 $this->
ctrl = $DIC->ctrl();
53 $this->
lng = $DIC->language();
54 $this->tpl = $DIC[
"tpl"];
55 $this->ui_factory = $DIC->ui()->factory();
56 $this->ui_renderer = $DIC->ui()->renderer();
58 $this->container_global_profiles = $a_cont_glb_profiles;
59 $this->container_local_profiles = $a_cont_lcl_profiles;
61 $this->profile_service = $DIC->skills()->profile();
65 $this->
setTitle($this->
lng->txt(
"cont_skill_profiles"));
68 $this->
addColumn($this->
lng->txt(
"cont_skill_profile"),
"",
"1");
73 $this->
setRowTemplate(
"tpl.cont_profile_row.html",
"Services/Container/Skills");
76 if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
77 $this->
addMultiCommand(
"confirmRemoveSelectedGlobalProfiles", $this->
lng->txt(
"remove"));
79 if ($this->skmg_settings->getAllowLocalProfiles()) {
80 $this->
addMultiCommand(
"confirmDeleteSelectedLocalProfiles", $this->
lng->txt(
"delete"));
87 if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
88 foreach ($this->container_global_profiles->getProfiles() as $gp) {
89 $profiles[$gp[
"profile_id"]] = [
90 "profile_id" => $gp[
"profile_id"],
91 "title" => $this->profile_service->lookupTitle($gp[
"profile_id"])
95 if ($this->skmg_settings->getAllowLocalProfiles()) {
96 foreach ($this->container_local_profiles->getProfiles() as $lp) {
97 $profiles[$lp[
"profile_id"]] = [
98 "profile_id" => $lp[
"profile_id"],
99 "title" => $this->profile_service->lookupTitle($lp[
"profile_id"])
108 protected function fillRow(array $a_set): void
116 $tpl->setVariable(
"TITLE", $a_set[
"title"]);
117 $tpl->setVariable(
"ID", $a_set[
"profile_id"]);
119 if ($this->profile_service->lookupRefId($a_set[
"profile_id"]) > 0) {
120 $tpl->setVariable(
"CONTEXT",
$lng->
txt(
"skmg_context_local"));
122 $tpl->setVariable(
"CONTEXT",
$lng->
txt(
"skmg_context_global"));
129 if ($this->profile_service->lookupRefId($a_set[
"profile_id"]) > 0) {
131 $ui_factory->
link()->standard(
135 $ui_factory->
link()->standard(
142 $ui_factory->
link()->standard(
149 $dropdown = $this->ui_factory->dropdown()->standard($items)->withLabel(
$lng->
txt(
"actions"));
150 $tpl->setVariable(
"ACTIONS", $ui_renderer->
render($dropdown));
An entity that renders components to a string output.
link()
description: purpose: > Links are used navigate to other resources or views of the system by clickin...
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
render($component, ?Renderer $root=null)
Render given component.
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)
ilContainerLocalProfiles $container_local_profiles
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setParameterByClass(string $a_class, string $a_parameter, $a_value)
TableGUI class for competence profiles in containers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilSkillManagementSettings $skmg_settings
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
ilContainerGlobalProfiles $container_global_profiles
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
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...
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
__construct(Container $dic, ilPlugin $plugin)
SkillProfileService $profile_service
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)
addMultiCommand(string $a_cmd, string $a_text)
__construct( $a_parent_obj, string $a_parent_cmd, ilContainerGlobalProfiles $a_cont_glb_profiles, ilContainerLocalProfiles $a_cont_lcl_profiles)