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


PHP Permission::get_all_permission_names_by_id方法代码示例

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


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

示例1: array_map

	<tr>
		<td style="height:1%">
			<a href="<?php 
echo $edit_link;
?>
" onclick="return nc.ui.dashboard.fullscreen(this)">
				<i class="nc-icon nc--user nc--white"></i> <?php 
echo $perm->getLogin();
?>
			</a>
		</td>
	</tr>
	<tr>
		<td class="">
			<?php 
$perm_names = array_map('trim', Permission::get_all_permission_names_by_id($AUTH_USER_ID));
?>
			<a href="<?php 
echo $perm_link;
?>
" onclick="return nc.ui.dashboard.fullscreen(this)">
				<dl title="<?php 
echo implode(', ', $perm_names);
?>
" class="nc-info nc--small nc--vertical">
					<dt><?php 
echo array_shift($perm_names);
?>
</dt>
					<?php 
if ($perm_names) {
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:user.php

示例2: join

// Справка
//--------------------------------------------------------------------------
$navbar->menu->help = $navbar->menu->add_btn('#', SECTION_INDEX_MENU_HELP)->submenu();
$navbar->menu->help->add_btn('http://www.netcat.ru/developers/docs/', SECTION_INDEX_HELP_SUBMENU_DOC)->icon('docs')->attr('target', '_blank')->add_divider()->add_btn('http://www.netcat.ru/forclients/support/tickets/', SECTION_INDEX_HELP_SUBMENU_HELPDESC)->icon('user-group')->attr('target', '_blank')->add_btn('http://www.netcat.ru/support/forum/', SECTION_INDEX_HELP_SUBMENU_FORUM)->icon('mod-forum2')->attr('target', '_blank')->add_btn('http://www.netcat.ru/support/knowledge/', SECTION_INDEX_HELP_SUBMENU_BASE)->icon('docs')->attr('target', '_blank')->add_divider()->add_btn('#help.about', SECTION_INDEX_HELP_SUBMENU_ABOUT)->icon('about');
//--------------------------------------------------------------------------
// Navbar tray
//--------------------------------------------------------------------------
// AJAX Loader
$navbar->tray->add_btn('#')->compact()->icon_large('navbar-loader')->id('nc-navbar-loader')->style('display:none');
if ($perm->isAccess(NC_PERM_REPORT)) {
    // Иконка с сообщениями
    $navbar->tray->add_btn('#tools.systemmessages')->compact()->title($ANY_SYSTEM_MESSAGE ? BEGINHTML_ALARMON : BEGINHTML_ALARMOF, true)->icon_large('system-message')->id('trayMessagesIcon')->disabled(!$ANY_SYSTEM_MESSAGE);
}
// Меню пользователя
$logout_link = $MODULE_VARS['auth'] ? $SUB_FOLDER . $HTTP_ROOT_PATH . "modules/auth/?logoff=1&amp;REQUESTED_FROM=" . $REQUEST_URI : $ADMIN_PATH . "unauth.php";
$navbar->tray->add_btn('#', $perm->getLogin())->click('return false')->title(BEGINHTML_USER . ': ' . $perm->getLogin())->htext(BEGINHTML_USER)->dropdown()->div(NETCAT_ADMIN_AUTH_PERM . " <span class='nc-text-grey'>" . join(', ', Permission::get_all_permission_names_by_id($AUTH_USER_ID)) . "</span><hr>" . $nc_core->ui->btn('#', NETCAT_ADMIN_AUTH_CHANGE_PASS)->click('nc_password_change(); return false')->light()->text_darken()->left() . $nc_core->ui->btn($logout_link, NETCAT_ADMIN_AUTH_LOGOUT)->red()->right())->class_name('nc-padding-10');
?>
<body class="nc-admin" style="overflow-y:hidden">

    <?php 
echo $navbar;
?>

<?php 
// Содержание модального окна быстрого изменения пароля
//TODO: Сделать загрузку содержимого окна через ajax
?>
<div id='nc_password_change' class='nc-shadow-large nc--hide'>
    <form class='nc-form' style='width:350px' method='post' action='<?php 
echo $ADMIN_PATH;
?>
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:index.php


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