本文整理匯總了PHP中ilUserUtil::getStartingPointAsUrl方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilUserUtil::getStartingPointAsUrl方法的具體用法?PHP ilUserUtil::getStartingPointAsUrl怎麽用?PHP ilUserUtil::getStartingPointAsUrl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilUserUtil
的用法示例。
在下文中一共展示了ilUserUtil::getStartingPointAsUrl方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getHeaderURL
protected function getHeaderURL()
{
include_once './Services/User/classes/class.ilUserUtil.php';
$url = ilUserUtil::getStartingPointAsUrl();
if (!$url) {
$url = "./goto.php?target=root_1";
}
return $url;
}
示例2: processStartingPage
/**
* open start page (personal desktop or repository)
*
* precondition: authentication (maybe anonymous) successfull
*/
function processStartingPage()
{
/**
* @var $ilUser ilObjUser
*/
global $ilUser;
// fallback, should never happen
if ($ilUser->getId() == ANONYMOUS_USER_ID) {
ilInitialisation::goToPublicSection();
} else {
// for password change and incomplete profile
// see ilPersonalDesktopGUI
if (IS_PAYMENT_ENABLED) {
include_once './Services/Payment/classes/class.ilPaymentShoppingCart.php';
ilPaymentShoppingCart::_assignObjectsToUserId($ilUser->getId());
if ((int) $_GET['forceShoppingCartRedirect']) {
ilUtil::redirect('ilias.php?baseClass=ilShopController&cmd=redirect&redirect_class=ilshopshoppingcartgui');
}
}
if (!$_GET["target"]) {
// Redirect here to switch back to http if desired
include_once './Services/User/classes/class.ilUserUtil.php';
ilUtil::redirect(ilUserUtil::getStartingPointAsUrl());
} else {
// will handle shop redirects, too
ilUtil::redirect("goto.php?target=" . $_GET["target"]);
}
}
}