当前位置: 首页>>代码示例>>PHP>>正文


PHP Access::accessHandlerDropdown方法代码示例

本文整理汇总了PHP中Access::accessHandlerDropdown方法的典型用法代码示例。如果您正苦于以下问题:PHP Access::accessHandlerDropdown方法的具体用法?PHP Access::accessHandlerDropdown怎么用?PHP Access::accessHandlerDropdown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Access的用法示例。


在下文中一共展示了Access::accessHandlerDropdown方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadDefaultSettings

 static function loadDefaultSettings()
 {
     new Setting("home_page", "editor", "", "home_page");
     new Setting("site_name", "text", "", "general", SITENAME);
     new Setting("site_email", "email", "", "general", SITEEMAIL);
     new Setting("css_cache", "dropdown", array(true => "Yes", false => "No"), "general", true);
     new Setting("default_access", "dropdown", Access::accessHandlerDropdown());
     new Setting("debug_mode", "dropdown", array("no" => "No", "yes" => "Yes"));
     new Setting("wrap_views", "dropdown", array("no" => "No", "yes" => "Yes"));
     new Setting("show_translations", "dropdown", array("no" => "No", "yes" => "Yes"));
     new Setting("hide_socia_link", "dropdown", array("no" => "No", "yes" => "Yes"));
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:12,代码来源:Init.php

示例2: denyDirect

<?php

/* * ***********************************************************************
 * 
 * SocialApparatus CONFIDENTIAL
 * __________________
 * 
 *  [2002] - [2017] SocialApparatus (http://SocialApparatus.co) 
 *  All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains the property of SocialApparatus 
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
$options = array();
$label = Vars::get("label");
$value = Vars::get("value");
$options = Access::accessHandlerDropdown();
if (!adminLoggedIn()) {
    unset($options['Admin']);
}
echo display("input/dropdown", array("label" => $label, "name" => "access_id", "options_values" => $options, "value" => $value));
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:31,代码来源:access.php


注:本文中的Access::accessHandlerDropdown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。