本文整理匯總了PHP中access::group_intent方法的典型用法代碼示例。如果您正苦於以下問題:PHP access::group_intent方法的具體用法?PHP access::group_intent怎麽用?PHP access::group_intent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類access
的用法示例。
在下文中一共展示了access::group_intent方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
<? foreach ($groups as $group): ?>
<th> <?php
echo p::clean($group->name);
?>
</th>
<? endforeach ?>
</tr>
<? foreach ($permissions as $permission): ?>
<tr>
<td> <?php
echo t($permission->display_name);
?>
</td>
<? foreach ($groups as $group): ?>
<? $intent = access::group_intent($group, $permission->name, $item) ?>
<? $allowed = access::group_can($group, $permission->name, $item) ?>
<? $lock = access::locked_by($group, $permission->name, $item) ?>
<? if ($lock): ?>
<td class="gDenied">
<img src="<?php
echo url::file('themes/default/images/ico-denied.png');
?>
" title="<?php
echo t('denied and locked through parent album');
?>
" alt="<?php
echo t('denied icon');
?>
" />