35 public function __construct($a_parent_obj, $a_parent_cmd, $a_ass_objects)
39 $this->ctrl = $DIC->ctrl();
40 $this->lng = $DIC->language();
41 $this->access = $DIC->access();
42 $this->tree = $DIC->repositoryTree();
47 foreach ($a_ass_objects as $obj) {
49 $data[] = array(
"obj_id" => $obj);
54 $this->
setTitle($this->lng->txt(
"skmg_assigned_objects"));
56 $this->
addColumn($this->lng->txt(
"title"),
"title");
57 $this->
addColumn($this->lng->txt(
"path"),
"path");
59 $this->
setRowTemplate(
"tpl.skill_assigned_objects_row.html",
"Services/Skill");
68 $this->tpl->setVariable(
72 $this->lng->txt(
"icon") .
" " . $this->lng->txt($obj_type)
78 $obj_ref_id = end($obj_ref_id);
79 $obj_ref_id_parent = $this->tree->getParentId($obj_ref_id);
83 $this->tpl->setVariable(
85 $path->getPath($this->tree->getParentId($obj_ref_id_parent), $obj_ref_id)
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
Creates a path for a start and endnode.
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
__construct($a_parent_obj, $a_parent_cmd, $a_ass_objects)
Constructor.
static _lookupTitle($a_id)
lookup object title
fillRow($a_set)
Fill table row.
TableGUI class for assigned objects of skills.
static _getAllReferences($a_id)
get all reference ids of object
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupType($a_id, $a_reference=false)
lookup object type
__construct(Container $dic, ilPlugin $plugin)
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.