本文整理汇总了PHP中AuthManager::getUserSessoinMarker方法的典型用法代码示例。如果您正苦于以下问题:PHP AuthManager::getUserSessoinMarker方法的具体用法?PHP AuthManager::getUserSessoinMarker怎么用?PHP AuthManager::getUserSessoinMarker使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AuthManager
的用法示例。
在下文中一共展示了AuthManager::getUserSessoinMarker方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jsCommon
private function jsCommon()
{
$params['url'] = PsUrl::current();
$params['userId'] = AuthManager::getUserIdOrNull();
$params['isAuthorized'] = AuthManager::isAuthorized();
$params['isDOA'] = PsSettings::DEVMODE_OR_ADMIN();
$params['isLogging'] = PsSettings::DEVMODE_OR_ADMIN();
$params['currentSubmitTimeout'] = ActivityWatcher::getWaitTime();
$params['tzOffset'] = PsTimeZone::inst()->getCurrentDateTimeZone()->getOffset(new DateTime());
$params['marker'] = AuthManager::getUserSessoinMarker();
$params['foldings'] = FoldedStorage::listEntitiesRel();
return $params;
}
示例2: jsCommon
private function jsCommon(PageContext $ctxt)
{
$params['url'] = $ctxt->getRequestUrl();
$params['isPopup'] = $ctxt->isPopupPage();
$params['userId'] = AuthManager::getUserIdOrNull();
$params['isAuthorized'] = AuthManager::isAuthorized();
$params['isDOA'] = PsSettings::DEVMODE_OR_ADMIN();
$params['isLogging'] = PsSettings::DEVMODE_OR_ADMIN();
$params['currentSubmitTimeout'] = ActivityWatcher::getWaitTime();
$params['tzOffset'] = PsTimeZone::inst()->getCurrentDateTimeZone()->getOffset(new DateTime());
$params['marker'] = AuthManager::getUserSessoinMarker();
/* @var $folding FoldedResources */
foreach (Handlers::getInstance()->getFoldingsIndexed() as $unique => $folding) {
$params['foldings'][$unique] = $folding->getResourcesDm()->relDirPath();
}
return $params;
}