本文整理汇总了PHP中TaskPermission::canAccessUserSearch方法的典型用法代码示例。如果您正苦于以下问题:PHP TaskPermission::canAccessUserSearch方法的具体用法?PHP TaskPermission::canAccessUserSearch怎么用?PHP TaskPermission::canAccessUserSearch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TaskPermission
的用法示例。
在下文中一共展示了TaskPermission::canAccessUserSearch方法的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
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$tp = new TaskPermission();
if (!$tp->canAccessUserSearch()) {
die(t("You have no access to users."));
}
$u = new User();
$cnt = Loader::controller('/dashboard/users/search');
$userList = $cnt->getRequestedSearchResults();
$columns = $cnt->get('columns');
$users = $userList->getPage();
$pagination = $userList->getPagination();
$searchType = Loader::helper('text')->entities($_REQUEST['searchType']);
Loader::element('users/search_results', array('columns' => $columns, 'users' => $users, 'userList' => $userList, 'searchType' => $searchType, 'pagination' => $pagination));
示例3: t
$("#ccm-additional-groups").append(html);
}
});
</script>
<?
} else { ?>
<?=Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Search Users'), t('Search the users of your site and perform bulk actions on them.'), false, false);?>
<?
$tp = new TaskPermission();
if ($tp->canAccessUserSearch()) { ?>
<div class="ccm-pane-options" id="ccm-<?=$searchInstance?>-pane-options">
<? Loader::element('users/search_form_advanced', array('columns' => $columns, 'searchInstance' => $searchInstance, 'searchRequest' => $searchRequest, 'searchType' => 'DASHBOARD')); ?>
</div>
<? Loader::element('users/search_results', array('columns' => $columns, 'searchInstance' => $searchInstance, 'searchType' => 'DASHBOARD', 'users' => $users, 'userList' => $userList, 'pagination' => $pagination)); ?>
<? } else { ?>
<div class="ccm-pane-body">
<p><?=t('You do not have access to user search. This setting may be changed in the access section of the dashboard settings page.')?></p>
</div>
<? } ?>
<?=Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false); ?>