当前位置: 首页>>代码示例>>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;未经允许,请勿转载。