4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
30 public function __construct($a_parent_obj, $a_parent_cmd, $a_sn_id, $a_se =
null)
34 $this->ctrl =
$DIC->ctrl();
35 $this->lng =
$DIC->language();
36 $this->access =
$DIC->access();
39 $ilAccess =
$DIC->access();
42 $this->sn_id = $a_sn_id;
45 $this->levels = $this->se->getLevels();
49 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
51 $path = $stree->getPathFull($this->sn_id);
53 foreach ($path as $p) {
54 if ($p[
"type"] !=
"skrt") {
55 $title .= $sep . $p[
"title"];
65 $this->
addColumn($this->lng->txt(
"skmg_your_self_evaluation"));
66 $this->
addColumn($this->lng->txt(
"skmg_skill_level"));
86 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
88 $levels = array(array(
"id" => 0));
89 foreach ($this->skill->getLevelData() as $k => $v) {
104 if ($a_set[
"id"] == 0) {
105 $this->tpl->setVariable(
"LEVEL_ID", $a_set[
"id"]);
106 $this->tpl->setVariable(
"SKILL_ID", $this->sn_id);
107 $this->tpl->setVariable(
"TXT_SKILL",
$lng->txt(
"skmg_no_skills"));
109 $this->tpl->setVariable(
"LEVEL_ID", $a_set[
"id"]);
110 $this->tpl->setVariable(
"SKILL_ID", $this->sn_id);
111 $this->tpl->setVariable(
"TXT_SKILL", $a_set[
"title"] .
": " . $a_set[
"description"]);
114 if ($this->se !=
null) {
115 if ($this->levels[$this->sn_id] == $a_set[
"id"]) {
116 $this->tpl->setVariable(
"CHECKED",
" checked='checked' ");
119 if ($a_set[
"id"] == 0) {
120 $this->tpl->setVariable(
"CHECKED",
" checked='checked' ");
An exception for terminatinating execution or to throw for unit testing.
Self evaluation table for single skill.
__construct($a_parent_obj, $a_parent_cmd, $a_sn_id, $a_se=null)
Constructor.
fillRow($a_set)
Fill table row.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
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.
disable($a_module_name)
diesables particular modules of table
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc