本文整理汇总了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>
示例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 = '
示例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)) {