/** * Execute Command */ function executeCommand() { global $ilCtrl, $tpl; if (!self::validateUser($this->getUserId())) { return; } $next_class = $ilCtrl->getNextClass($this); $cmd = $ilCtrl->getCmd(); $tpl->getStandardTemplate(); switch ($next_class) { case "ilobjportfoliogui": $portfolio_id = $this->getProfilePortfolio(); if ($portfolio_id) { include_once 'Services/PermanentLink/classes/class.ilPermanentLinkGUI.php'; $plink = new ilPermanentLinkGUI("usr", $this->getUserId()); $plink = $plink->getHTML(); include_once "Modules/Portfolio/classes/class.ilObjPortfolioGUI.php"; $gui = new ilObjPortfolioGUI($portfolio_id); // #11876 $gui->setAdditional($this->getAdditional()); $gui->setPermaLink($plink); $ilCtrl->forwardCommand($gui); break; } default: $ret = $this->{$cmd}(); $tpl->setContent($ret); // only for direct links if ($_GET["baseClass"] == "ilPublicUserProfileGUI") { $tpl->show(); } break; } }
/** * Execute Command */ function executeCommand() { global $ilCtrl, $tpl; if (!self::validateUser($this->getUserId())) { return; } $next_class = $ilCtrl->getNextClass($this); $cmd = $ilCtrl->getCmd(); $tpl->getStandardTemplate(); switch ($next_class) { case "ilobjportfoliogui": $portfolio_id = $this->getProfilePortfolio(); if ($portfolio_id) { $this->handleBackUrl(); include_once "Modules/Portfolio/classes/class.ilObjPortfolioGUI.php"; $gui = new ilObjPortfolioGUI($portfolio_id); // #11876 $gui->setAdditional($this->getAdditional()); $gui->setPermaLink($this->getUserId(), "usr"); $ilCtrl->forwardCommand($gui); break; } default: $ret = $this->{$cmd}(); $tpl->setContent($ret); break; } // only for direct links if (strtolower($_GET["baseClass"]) == "ilpublicuserprofilegui") { $tpl->show(); } }