本文整理匯總了PHP中XenForo_Application::allowManualDeferred方法的典型用法代碼示例。如果您正苦於以下問題:PHP XenForo_Application::allowManualDeferred方法的具體用法?PHP XenForo_Application::allowManualDeferred怎麽用?PHP XenForo_Application::allowManualDeferred使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XenForo_Application
的用法示例。
在下文中一共展示了XenForo_Application::allowManualDeferred方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _handleCustomPreloadedData
/**
* Handles the custom data that needs to be preloaded.
*
* @param array $data Data that was loaded. Unsuccessfully loaded items will have a value of null
*/
protected function _handleCustomPreloadedData(array &$data)
{
if (!is_array($data['routesAdmin'])) {
$data['routesAdmin'] = XenForo_Model::create('XenForo_Model_RoutePrefix')->rebuildRoutePrefixTypeCache('admin');
}
XenForo_Link::setHandlerInfoForGroup('admin', $data['routesAdmin']);
if (!is_array($data['adminStyleProperties'])) {
$data['adminStyleProperties'] = XenForo_Model::create('XenForo_Model_StyleProperty')->rebuildPropertyCacheInStyleAndChildren(-1);
}
XenForo_Application::set('adminStyleProperties', $data['adminStyleProperties']);
if (!is_int($data['adminStyleModifiedDate'])) {
$data['adminStyleModifiedDate'] = 0;
}
XenForo_Application::set('adminStyleModifiedDate', $data['adminStyleModifiedDate']);
if (!is_array($data['adminSearchTypes'])) {
try {
$data['adminSearchTypes'] = XenForo_Model::create('XenForo_Model_AdminSearch')->rebuildSearchTypesCache();
} catch (Exception $e) {
$data['adminSearchTypes'] = array();
}
}
XenForo_Application::set('adminSearchTypes', $data['adminSearchTypes']);
XenForo_Application::$allowManualDeferred = true;
XenForo_Application::$javaScriptUrl = 'js';
}