本文整理汇总了PHP中Rights::getAuthItemTypeNamePlural方法的典型用法代码示例。如果您正苦于以下问题:PHP Rights::getAuthItemTypeNamePlural方法的具体用法?PHP Rights::getAuthItemTypeNamePlural怎么用?PHP Rights::getAuthItemTypeNamePlural使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Rights
的用法示例。
在下文中一共展示了Rights::getAuthItemTypeNamePlural方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::getAuthItemTypeNamePlural($model->type)=>Rights::getAuthItemRoute($model->type),
$model->name,
); ?>
<div id="updatedAuthItem">
<h2><?php echo Rights::t('core', 'Update :name', array(
':name'=>$model->name,
':type'=>Rights::getAuthItemTypeName($model->type),
)); ?></h2>
<?php $this->renderPartial('_form', array('model'=>$formModel)); ?>
<div class="relations span-11 last">
<h3><?php echo Rights::t('core', 'Relations'); ?></h3>
<?php if( $model->name!==Rights::module()->superuserName ): ?>
<div class="parents">
<h4><?php echo Rights::t('core', 'Parents'); ?></h4>
<?php $this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$parentDataProvider,
'template'=>'{items}',
'hideHeader'=>true,
'emptyText'=>Rights::t('core', 'This item has no parents.'),
'htmlOptions'=>array('class'=>'grid-view parent-table mini'),
示例2: array
<?php
$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::getAuthItemTypeNamePlural($model->type) => Rights::getAuthItemRoute($model->type), $model->name);
$this->renderPartial('/_menu');
?>
<div id="updatedAuthItem">
<h2><?php
echo Rights::t('core', 'Update :name', array(':name' => $model->name, ':type' => Rights::getAuthItemTypeName($model->type)));
?>
</h2>
<?php
$this->renderPartial('_form', array('model' => $formModel));
?>
<div class="relations span-11 last">
<h3><?php
echo Rights::t('core', 'Relations');
?>
</h3>
<?php
if ($model->name !== Rights::module()->superuserName) {
?>
<div class="parents">
<h4><?php
示例3: array
<?php
$this->breadcrumbs = array('Home' => $this->createUrl('/admin'), 'Права доступа' => Rights::getBaseUrl(), Rights::getAuthItemTypeNamePlural($model->type) => Rights::getAuthItemRoute($model->type), $model->name);
$this->pageHeader = Rights::t('core', 'Update :name', array(':name' => $model->name, ':type' => Rights::getAuthItemTypeName($model->type)));
$this->sidebarContent = $this->renderPartial('/_menu', null, true);
?>
<div id="rights" class="">
<div id="updatedAuthItem">
<?php
$this->renderPartial('_form', array('model' => $formModel));
?>
<div class="relations padding-all">
<h3><?php
echo Rights::t('core', 'Relations');
?>
</h3>
<?php
if ($model->name !== Rights::module()->superuserName) {
?>
<div class="form wide">
<div class="row">
<label><?php
echo Rights::t('core', 'Parents');
?>
</label>