本文整理匯總了PHP中XenForo_Link::getHandlerInfoForGroup方法的典型用法代碼示例。如果您正苦於以下問題:PHP XenForo_Link::getHandlerInfoForGroup方法的具體用法?PHP XenForo_Link::getHandlerInfoForGroup怎麽用?PHP XenForo_Link::getHandlerInfoForGroup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XenForo_Link
的用法示例。
在下文中一共展示了XenForo_Link::getHandlerInfoForGroup方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _setupForXenForo1_1_x
protected static function _setupForXenForo1_1_x()
{
self::$_setup11x = true;
if (XenForo_Application::$versionId < 1020000) {
// dirty trick to get the public routes
$className = 'a' . md5(uniqid());
eval(sprintf('class %s extends XenForo_Link{
public static function getHandlerInfoForGroup($group){
if (empty(XenForo_Link::$_handlerCache[$group]))return false;
return XenForo_Link::$_handlerCache[$group];}}', $className));
$routesPublic = call_user_func(array($className, 'getHandlerInfoForGroup'), 'public');
} else {
$routesPublic = XenForo_Link::getHandlerInfoForGroup('public');
}
if (!empty($routesPublic)) {
foreach ($routesPublic as $routePrefix => &$handlerInfo) {
if ($routePrefix === 'index') {
$handlerInfo['build_link'] = 'all';
}
}
XenForo_Link::setHandlerInfoForGroup('public', $routesPublic);
}
}