當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PermissionKey::loadAll方法代碼示例

本文整理匯總了PHP中PermissionKey::loadAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP PermissionKey::loadAll方法的具體用法?PHP PermissionKey::loadAll怎麽用?PHP PermissionKey::loadAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PermissionKey的用法示例。


在下文中一共展示了PermissionKey::loadAll方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: items

# Startup check, install ##
require $cdir . '/startup/config_check_complete.php';
## Determines whether we can use the more efficient permission local caching
require $cdir . '/startup/permission_cache_check.php';
## Localization ##
## This MUST be run before packages start - since they check ACTIVE_LOCALE which is defined here ##
require $cdir . '/config/localization.php';
## Security helpers
require $cdir . '/startup/security.php';
## File types ##
## Note: these have to come after config/localization.php ##
require $cdir . '/config/file_types.php';
## Package events
require $cdir . '/startup/packages.php';
## Load permissions and attributes
PermissionKey::loadAll();
## Check host for redirection ##
require $cdir . '/startup/url_check.php';
## Set debug-related and logging activities
require $cdir . '/startup/debug_logging.php';
## Site-level config POST user/app config ##
if (file_exists(DIR_CONFIG_SITE . '/site_post.php')) {
    require DIR_CONFIG_SITE . '/site_post.php';
}
## Site-level config POST user/app config - managed by c5, do NOT add your own stuff here ##
if (file_exists(DIR_CONFIG_SITE . '/site_post_restricted.php')) {
    require DIR_CONFIG_SITE . '/site_post_restricted.php';
}
## Specific site routes for various content items (if they exist) ##
if (file_exists(DIR_CONFIG_SITE . '/site_theme_paths.php')) {
    @(include DIR_CONFIG_SITE . '/site_theme_paths.php');
開發者ID:ronlobo,項目名稱:concrete5,代碼行數:31,代碼來源:dispatcher.php


注:本文中的PermissionKey::loadAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。