ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPortfolioRoleAssignmentTableGUI.php
Go to the documentation of this file.
1<?php
2
20
25{
27
28 public function __construct(
29 object $a_parent_obj,
30 string $a_parent_cmd,
32 ) {
33 global $DIC;
34
35 $this->id = "";
36 $this->lng = $DIC->language();
37 $this->ctrl = $DIC->ctrl();
38 $this->manager = $manager;
39
40 parent::__construct($a_parent_obj, $a_parent_cmd);
41
42 $this->setData($this->getItems());
43 $this->setTitle($this->lng->txt(""));
44
45 $this->addColumn("", "", "1", true);
46 $this->addColumn($this->lng->txt("prtf_role_title"), "role_title");
47 $this->addColumn($this->lng->txt("prtf_template_title"), "template_title");
48
49 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
50 $this->setRowTemplate("tpl.prtf_role_assignment_row.html", "components/ILIAS/Portfolio/Administration");
51
52 $this->addMultiCommand("confirmAssignmentDeletion", $this->lng->txt("prtf_delete_assignment"));
53 }
54
55 protected function getItems(): array
56 {
57 return $this->manager->getAllAssignmentData();
58 }
59
60 protected function fillRow(array $a_set): void
61 {
63 $tpl->setVariable("ROLE_ID", $a_set["role_id"]);
64 $tpl->setVariable("TEMPLATE_ID", $a_set["template_ref_id"]);
65 $tpl->setVariable("TEMPLATE_TITLE", $a_set["template_title"]);
66 $tpl->setVariable("ROLE_TITLE", $a_set["role_title"]);
67 }
68}
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(object $a_parent_obj, string $a_parent_cmd, PortfolioRoleAssignmentManager $manager)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addMultiCommand(string $a_cmd, string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26