function contributors() { global $ilTabs, $ilToolbar, $ilCtrl, $lng, $tpl; if (!$this->checkPermissionBool("write")) { return; } $ilTabs->activateTab("contributors"); // add member include_once './Services/Search/classes/class.ilRepositorySearchGUI.php'; ilRepositorySearchGUI::fillAutoCompleteToolbar($this, $ilToolbar, array('auto_complete_name' => $lng->txt('user'), 'submit_name' => $lng->txt('add'), 'add_search' => true, 'add_from_container' => $this->node_id)); $other_roles = $this->object->getRolesWithContribute($this->node_id); if ($other_roles) { ilUtil::sendInfo(sprintf($lng->txt("blog_contribute_other_roles"), implode(", ", $other_roles))); } include_once "Modules/Blog/classes/class.ilContributorTableGUI.php"; $tbl = new ilContributorTableGUI($this, "contributors", $this->object->getLocalContributorRole($this->node_id)); $tpl->setContent($tbl->getHTML()); }
public function addContributorContainer() { global $ilTabs, $ilCtrl, $tpl; if (!$this->checkPermissionBool("write")) { return; } $ilTabs->activateTab("contributors"); $members = $this->object->getParentMemberIds($this->node_id); if (!$members) { $ilCtrl->redirect($this, "contributors"); } include_once "Modules/Blog/classes/class.ilContributorTableGUI.php"; $tbl = new ilContributorTableGUI($this, "addContributorContainer", $this->object->getLocalContributorRole($this->node_id), $members); $tpl->setContent($tbl->getHTML()); }