4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 public function __construct($a_parent_obj, $a_parent_cmd, $a_contributor_role_id, array $a_contributor_ids = null)
29 $this->contributor_role_id = $a_contributor_role_id;
30 $this->contributor_ids = $a_contributor_ids;
35 $this->
addColumn($this->lng->txt(
"name"),
"name");
40 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
42 if($this->contributor_ids)
44 $this->
setTitle($this->lng->txt(
"blog_contributor_container_add"));
45 $this->
addMultiCommand(
"addContributorContainerAction", $this->lng->txt(
"add"));
49 $this->
setTitle($this->lng->txt(
"blog_contributors"));
63 if($this->contributor_ids)
65 $assigned =$rbacreview->assignedUsers($this->contributor_role_id);
70 $this->contributor_ids = $rbacreview->assignedUsers($this->contributor_role_id);
73 include_once
"Services/User/classes/class.ilUserUtil.php";
76 foreach($this->contributor_ids as $id)
78 if(!in_array($id, $assigned))
80 $data[] = array(
"id" => $id,
95 $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
96 $this->tpl->setVariable(
"TXT_NAME", $a_set[
"name"]);