5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
30 public function __construct($a_parent_obj, $a_parent_cmd, $a_write_permission =
false)
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
38 $lng = $DIC->language();
39 $ilAccess = $DIC->access();
40 $lng = $DIC->language();
42 parent::__construct($a_parent_obj, $a_parent_cmd);
47 $this->
addColumn($this->lng->txt(
"title"),
"title");
48 $this->
addColumn($this->lng->txt(
"users"));
49 $this->
addColumn($this->lng->txt(
"actions"));
52 $this->
setRowTemplate(
"tpl.skill_profile_row.html",
"Services/Skill");
55 if ($a_write_permission) {
68 include_once(
"./Services/Skill/classes/class.ilSkillProfile.php");
81 $this->tpl->setCurrentBlock(
"cmd");
82 $this->tpl->setVariable(
"CMD",
$lng->txt(
"edit"));
83 $ilCtrl->setParameter($this->parent_obj,
"sprof_id", $a_set[
"id"]);
84 $this->tpl->setVariable(
"CMD_HREF",
$ilCtrl->getLinkTarget($this->parent_obj,
"showUsers"));
85 $ilCtrl->setParameter($this->parent_obj,
"sprof_id",
$_GET[
"sprof_id"]);
86 $this->tpl->parseCurrentBlock();
88 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
89 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
getProfiles()
Get profiles.
static getProfiles()
Get profiles.
TableGUI class for skill profiles.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
fillRow($a_set)
Fill table row.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static countUsers($a_profile_id)
Get assigned users.
__construct($a_parent_obj, $a_parent_cmd, $a_write_permission=false)
Constructor.