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


PHP TaskPermission::canAccessGroupSearch方法代码示例

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


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

示例1: die

<?php

defined('C5_EXECUTE') or die("Access Denied.");
$displayGroups = true;
$displayUsers = true;
if ($_REQUEST['mode'] == 'users') {
    $displayGroups = false;
} else {
    if ($_REQUEST['mode'] == 'groups') {
        $displayUsers = false;
    }
}
$tp = new TaskPermission();
if (!$tp->canAccessUserSearch() && !$tp->canAccessGroupSearch()) {
    die(t("Access Denied."));
}
?>

<script type="text/javascript">
var ccm_ugActiveTab = "ccm-select-group";

$("#ccm-ug-tabs a").click(function() {
	$("li.ccm-nav-active").removeClass('ccm-nav-active');
	$("#" + ccm_ugActiveTab + "-tab").hide();
	ccm_ugActiveTab = $(this).attr('id');
	$(this).parent().addClass("ccm-nav-active");
	$("#" + ccm_ugActiveTab + "-tab").show();
});

</script>
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:30,代码来源:user_group_selector.php

示例2: die

<?

defined('C5_EXECUTE') or die("Access Denied.");

$tp = new TaskPermission();
if (!$tp->canAccessGroupSearch()) { 
	echo(t("You have no access to groups."));
} else { 	
	
	if (!$_REQUEST['group_submit_search']) { ?>
	<div id="ccm-group-search-wrapper">
	<? } ?>
	
	<? 
	Loader::model('search/group');
	$gl = new GroupSearch();
	if ($_REQUEST['include_core_groups'] == 1) {
		$gl->includeAllGroups();
	}
	if (isset($_GET['gKeywords'])) {
		$gl->filterByKeywords($_GET['gKeywords']);
	}
	
	$gl->updateItemsPerPage(8);
	
	$gResults = $gl->getPage();
	
	?>
	
	<?php 
$group_search_form = '
开发者ID:remkoj,项目名称:concrete5,代码行数:31,代码来源:select_group.php

示例3: die

<?php

defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper("form");
use Concrete\Core\Permission\Access\Entity\Entity as PermissionAccessEntity;
use Concrete\Core\Permission\Access\Entity\Type as PermissionAccessEntityType;
use Concrete\Core\Permission\Duration as PermissionDuration;
$tp = new TaskPermission();
$tu = Loader::helper('concrete/user');
$dt = Loader::helper('form/date_time');
if (!$tu->canAccessUserSearchInterface() && !$tp->canAccessGroupSearch()) {
    die(t("You do not have user search or group search permissions."));
}
$pae = false;
if ($_REQUEST['peID']) {
    $pae = PermissionAccessEntity::getByID($_REQUEST['peID']);
}
if (!is_object($pae)) {
    $pae = false;
}
$pd = false;
if ($_REQUEST['pdID']) {
    $pd = PermissionDuration::getByID($_REQUEST['pdID']);
}
if (!is_object($pd)) {
    $pd = false;
}
if ($_POST['task'] == 'save_permissions') {
    $js = Loader::helper('json');
    $r = new stdClass();
    if (is_object($pae)) {
开发者ID:meixelsberger,项目名称:concrete5-5.7.0,代码行数:31,代码来源:access_entity.php


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