protected function show()
 {
     global $tpl, $lng, $ilToolbar, $ilCtrl;
     $ilToolbar->addButton($lng->txt("prtf_add_portfolio"), $ilCtrl->getLinkTargetByClass("ilObjPortfolioGUI", "create"));
     include_once "Modules/Portfolio/classes/class.ilPortfolioTableGUI.php";
     $table = new ilPortfolioTableGUI($this, "show", $this->user_id);
     include_once "Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
     $tpl->setContent($table->getHTML() . ilDiskQuotaHandler::getStatusLegend());
 }
 protected function show()
 {
     global $tpl, $lng, $ilToolbar, $ilCtrl;
     include_once "Services/UIComponent/Button/classes/class.ilLinkButton.php";
     $button = ilLinkButton::getInstance();
     $button->setCaption("prtf_add_portfolio");
     $button->setUrl($ilCtrl->getLinkTargetByClass("ilObjPortfolioGUI", "create"));
     $ilToolbar->addButtonInstance($button);
     include_once "Modules/Portfolio/classes/class.ilPortfolioTableGUI.php";
     $table = new ilPortfolioTableGUI($this, "show", $this->user_id);
     include_once "Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
     $tpl->setContent($table->getHTML() . ilDiskQuotaHandler::getStatusLegend());
 }
 protected function showOther()
 {
     global $tpl, $lng, $ilCtrl, $ilToolbar, $ilTabs;
     $ilTabs->activateTab("otpf");
     include_once './Services/Portfolio/classes/class.ilPortfolioAccessHandler.php';
     $handler = new ilPortfolioAccessHandler();
     $users = $handler->getSharedOwners();
     // user selection
     include_once "./Services/Form/classes/class.ilSelectInputGUI.php";
     $si = new ilSelectInputGUI($lng->txt("user"), "user");
     $si->setOptions(array("" => "-") + $users);
     $ilToolbar->addInputItem($si);
     $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
     $ilToolbar->addFormButton($lng->txt("ok"), "showOther");
     if (!$_REQUEST["user"]) {
         ilUtil::sendInfo($lng->txt("wsp_share_select_user"));
     } else {
         $si->setValue($_REQUEST["user"]);
         include_once "Services/Portfolio/classes/class.ilPortfolioTableGUI.php";
         $table = new ilPortfolioTableGUI($this, "showOther", $_REQUEST["user"], true);
         $tpl->setContent($table->getHTML());
     }
 }