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


PHP Rights::getAuthItemTypeName方法代码示例

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


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

示例1: getAssignments

 /**
  * Gets the users assignments.
  * @param boolean whether to display the authorization item type.
  * @return string the assignments markup.
  */
 public function getAssignments($displayType = false)
 {
     $authorizer = Rights::getAuthorizer();
     $assignments = $authorizer->authManager->getAuthAssignments($this->getId());
     $items = $authorizer->authManager->getAuthItemsByNames(array_keys($assignments));
     $items = $authorizer->attachAuthItemBehavior($items);
     $assignedItems = array();
     foreach ($items as $itemName => $item) {
         $itemMarkup = $item->getNameText();
         if ($displayType === true) {
             $itemMarkup .= ' (<span class="type-text">' . Rights::getAuthItemTypeName($item->type) . '</span>)';
         }
         $assignedItems[] = $itemMarkup;
     }
     return implode('<br />', $assignedItems);
 }
开发者ID:rusli-nasir,项目名称:smsempresayii,代码行数:21,代码来源:RightsUserBehavior.php

示例2: getInheritedPermissionText

 /**
  * Returns the markup for a inherited permission.
  * @param array the parents for this item.
  * @param boolean whether to display the parent item type.
  * @return string the markup.
  */
 public function getInheritedPermissionText($parents, $displayType = false)
 {
     $items = array();
     foreach ($parents as $itemName => $item) {
         $itemMarkup = $item->getNameText();
         if ($displayType === true) {
             $itemMarkup .= ' (' . Rights::getAuthItemTypeName($item->type) . ')';
         }
         $items[] = $itemMarkup;
     }
     return '<span class="inherited-item" title="' . implode('<br />', $items) . '">' . Rights::t('core', 'Inherited') . ' *</span>';
 }
开发者ID:rusli-nasir,项目名称:smsempresayii,代码行数:18,代码来源:RightsAuthItemBehavior.php

示例3: array

<?php $this->breadcrumbs = array(
	'Rights'=>Rights::getBaseUrl(),
	Rights::t('core', 'Create :type', array(':type'=>Rights::getAuthItemTypeName($_GET['type']))),
); ?>

<div class="createAuthItem">

	<h2 style="color:#427FED;border-bottom:2px solid #ff503f;padding: 10px 1%;width: 98%;"><?php echo Rights::t('core', 'Create :type', array(
		':type'=>Rights::getAuthItemTypeName($_GET['type']),
	)); ?></h2>

	<?php $this->renderPartial('_form', array('model'=>$formModel)); ?>

</div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:14,代码来源:create.php

示例4: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))));
$this->title = '<h2>' . Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))) . '</h2>';
?>

<?php 
echo $this->renderPartial('/_menu', array('list' => array()));
?>

<?php 
$this->renderPartial('/_flash');
?>

<?php 
$this->renderPartial('_form', array('model' => $formModel));
开发者ID:piond,项目名称:new_rsud,代码行数:16,代码来源:create.php

示例5: 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 
开发者ID:ZK413,项目名称:yiimine,代码行数:31,代码来源:update.php

示例6: if

<div class="form span-12 first">

<?php if( $model->scenario==='update' ): ?>

	<h3><?php echo Rights::getAuthItemTypeName($model->type); ?></h3>

<?php endif; ?>
	
<?php $form=$this->beginWidget('CActiveForm'); ?>

	<div class="row">
		<?php echo $form->labelEx($model, 'name'); ?>
		<?php echo $form->textField($model, 'name', array('maxlength'=>255, 'class'=>'text-field')); ?>
		<?php echo $form->error($model, 'name'); ?>
		<p class="hint" style="color:#2793CC">&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-info-circle"></i> <?php echo Rights::t('core', 'Do not change the name unless you know what you are doing.'); ?></p>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'description'); ?>
		<?php echo $form->textField($model, 'description', array('maxlength'=>255, 'class'=>'text-field')); ?>
		<?php echo $form->error($model, 'description'); ?>
		<p class="hint" style="color:#2793CC">&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-info-circle"></i> <?php echo Rights::t('core', 'A descriptive name for this item.'); ?></p>
	</div>

	<?php if( Rights::module()->enableBizRule===true ): ?>

		<div class="row">
			<?php echo $form->labelEx($model, 'bizRule'); ?>
			<?php echo $form->textField($model, 'bizRule', array('maxlength'=>255, 'class'=>'text-field')); ?>
			<?php echo $form->error($model, 'bizRule'); ?>
			<p class="hint"><?php echo Rights::t('core', 'Code that will be executed when performing access checking.'); ?></p>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:_form.php

示例7: array

<?php

$this->breadcrumbs = array('Phân quyền' => Rights::getBaseUrl(), Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))));
?>

<div class="createAuthItem">

	<h2><?php 
echo Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type'])));
?>
</h2>

	<?php 
$this->renderPartial('_form', array('model' => $formModel));
?>

</div>
开发者ID:ngdvan,项目名称:lntguitar,代码行数:17,代码来源:create.php

示例8: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))));
?>

<div class="createAuthItem">

	<?php 
Yii::app()->controller->pageTitle = Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type'])));
?>

	<?php 
$this->renderPartial('_form', array('model' => $formModel));
?>

</div>
开发者ID:pramana08,项目名称:GXC-CMS-2,代码行数:16,代码来源:create.php

示例9: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::getAuthItemTypeNamePlural($model->type) => Rights::getAuthItemRoute($model->type), $model->name);
?>

<div id="updatedAuthItem">
        <?php 
$this->beginWidget('MiniForm', array('header' => Rights::t('core', 'Update :name', array(':name' => $model->name, ':type' => Rights::getAuthItemTypeName($model->type)))));
?>
	

	<?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');
    ?>
开发者ID:hkhateb,项目名称:linet3,代码行数:31,代码来源:update.php

示例10: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))));
?>

<div class="createAuthItem">
            <?php 
$this->beginWidget('booster.widgets.TbPanel', array('title' => Rights::getAuthItemTypeName($_GET['type']), 'headerIcon' => 'icon-user '));
?>

	<?php 
$this->renderPartial('_form', array('model' => $formModel));
?>
    <?php 
$this->endContent();
?>
</div>
开发者ID:ednjv,项目名称:SSBMVZLA,代码行数:17,代码来源:create.php

示例11: 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'),
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:update.php

示例12: array

<?php

$this->breadcrumbs = array('Home' => $this->createUrl('/admin'), 'Права доступа' => Rights::getBaseUrl(), Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))));
$this->pageHeader = Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type'])));
?>

<div class="createAuthItem">
	<?php 
$this->renderPartial('_form', array('model' => $formModel));
?>
</div>
开发者ID:kolbensky,项目名称:rybolove,代码行数:11,代码来源:create.php

示例13: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type']))));
?>

<div class="createAuthItem">
    <?php 
$this->beginWidget('MiniForm', array('header' => Rights::t('core', 'Create :type', array(':type' => Rights::getAuthItemTypeName($_GET['type'])))));
?>
	

	<?php 
$this->renderPartial('_form', array('model' => $formModel));
?>
    <?php 
$this->endWidget();
?>
</div>
开发者ID:hkhateb,项目名称:linet3,代码行数:18,代码来源:create.php

示例14: 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>
开发者ID:kolbensky,项目名称:rybolove,代码行数:31,代码来源:update.php

示例15: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::getAuthItemTypeNamePlural($model->type) => Rights::getAuthItemRoute($model->type), $model->name);
$this->title = '<h2>' . Rights::t('core', 'Update :name', array(':name' => $model->name, ':type' => Rights::getAuthItemTypeName($model->type))) . '</h2>';
?>

<?php 
echo $this->renderPartial('/_menu', array('list' => array()));
?>

<?php 
$this->renderPartial('/_flash');
?>

<?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) {
    ?>

		<?php 
开发者ID:piond,项目名称:new_rsud,代码行数:31,代码来源:update.php


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