本文整理汇总了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');