24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
45 parent::__construct($a_parent_obj, $a_parent_cmd);
47 $this->grp_id = $a_grp_id;
48 $this->app_id = $a_app_id;
51 $this->
addColumn($lng->txt(
"user"),
"",
"100%");
53 "tpl.ms_responsible_users_row.html",
59 $ilCtrl->setParameter($a_parent_obj,
"app_id", $this->app_id);
62 $this->
setTitle($lng->txt(
"cal_ms_users_responsible"));
64 "saveMilestoneResponsibleUsers",
65 $lng->txt(
"cal_save_responsible_users")
74 $participants =
array();
75 if ($this->app_id > 0) {
76 include_once(
"./Services/Calendar/classes/class.ilCalendarEntry.php");
78 $resp_users = $app->readResponsibleUsers();
79 foreach ($resp_users as $v) {
81 $participants[$v[
"user_id"]] = array_merge(
$n,
array(
"type" =>
"non-member"));
82 $this->resp_users[] = $v[
"user_id"];
86 include_once(
'./Modules/Group/classes/class.ilGroupParticipants.php');
88 $admins = $part->getAdmins();
89 $members = $part->getMembers();
90 foreach ($members as $v) {
92 $participants[$v] = array_merge(
$n,
array(
"type" =>
"member"));
94 foreach ($admins as $v) {
96 $participants[$v] = array_merge(
$n,
array(
"type" =>
"admin"));
109 if (is_array($this->resp_users) && in_array($a_set[
"user_id"], $this->resp_users)) {
110 $this->tpl->setVariable(
"CHECKED",
' checked="checked" ');
112 $this->tpl->setVariable(
"USER_ID", $a_set[
"user_id"]);
113 $this->tpl->setVariable(
"TXT_FIRSTNAME", $a_set[
"firstname"]);
114 $this->tpl->setVariable(
"TXT_LASTNAME", $a_set[
"lastname"]);
static _lookupLogin($a_user_id)
lookup login
static _lookupName($a_user_id)
lookup user name
Model for a calendar entry.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct( $a_parent_obj, $a_parent_cmd="", $a_grp_id, $a_app_id)
TableGUI class for selection of milestone responsibles.
fillRow($a_set)
Standard Version of Fill Row.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
getParticipantsAndResponsibles()
Get participants and responsible users.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setMaxCount($a_max_count)
set max.