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


PHP Rights::getBaseUrl方法代码示例

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


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

示例1: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Assignments') => array('assignment/view'), $model->getName());
?>

<div id="userAssignments">
    <?php 
$this->beginWidget('MiniForm', array('header' => Rights::t('core', 'Assignments for :username', array(':username' => $model->getName()))));
?>
	
	
	<div class="">

		<?php 
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $dataProvider, 'template' => '{items}', 'hideHeader' => true, 'emptyText' => Rights::t('core', 'This user has not been assigned any items.'), 'htmlOptions' => array('class' => 'grid-view user-assignment-table mini'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getNameText()'), array('name' => 'type', 'header' => Rights::t('core', 'Type'), 'type' => 'raw', 'htmlOptions' => array('class' => 'type-column'), 'value' => '$data->getTypeText()'), array('header' => '&nbsp;', 'type' => 'raw', 'htmlOptions' => array('class' => 'actions-column'), 'value' => '$data->getRevokeAssignmentLink()'))));
?>

	</div>

	<div class="">

		<h3><?php 
echo Rights::t('core', 'Assign item');
?>
</h3>

		<?php 
if ($formModel !== null) {
    ?>

			<div class="form">
开发者ID:hkhateb,项目名称:linet3,代码行数:31,代码来源:user.php

示例2: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Generate items'));
?>

<div id="generator">

	<h2><?php 
echo Rights::t('core', 'Generate items');
?>
</h2>

	<p><?php 
echo Rights::t('core', 'Please select which items you wish to generate.');
?>
</p>

	<div class="form">

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

			<div class="row">

				<table class="items generate-item-table" style="border:0; cellpadding:0; cellspacing:0;">

					<tbody>

						<tr class="application-heading-row">
							<th colspan="3"><?php 
开发者ID:robebeye,项目名称:isims,代码行数:31,代码来源:generate.php

示例3: array

<?php

$this->breadcrumbs = array('Phân quyền' => Rights::getBaseUrl(), Rights::t('core', 'Assignments'));
?>

<div id="assignments">

	<h2><?php 
echo Rights::t('core', 'Assignments');
?>
</h2>

	<p>
		<?php 
echo Rights::t('core', 'Here you can view which permissions has been assigned to each user.');
?>
	</p>

	<?php 
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $dataProvider, 'template' => "{items}\n{pager}", 'emptyText' => Rights::t('core', 'No users found.'), 'htmlOptions' => array('class' => 'grid-view assignment-table'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getAssignmentNameLink()'), array('name' => 'assignments', 'header' => Rights::t('core', 'Roles'), 'type' => 'raw', 'htmlOptions' => array('class' => 'role-column'), 'value' => '$data->getAssignmentsText(CAuthItem::TYPE_ROLE)'), array('name' => 'assignments', 'header' => Rights::t('core', 'Tasks'), 'type' => 'raw', 'htmlOptions' => array('class' => 'task-column'), 'value' => '$data->getAssignmentsText(CAuthItem::TYPE_TASK)'), array('name' => 'assignments', 'header' => Rights::t('core', 'Operations'), 'type' => 'raw', 'htmlOptions' => array('class' => 'operation-column'), 'value' => '$data->getAssignmentsText(CAuthItem::TYPE_OPERATION)'))));
?>

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

示例4: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Permissions'));
?>

<div id="permissions">

	<h2><?php 
echo Rights::t('core', 'Permissions');
?>
</h2>

	<p>
		<?php 
echo Rights::t('core', 'Here you can view and manage the permissions assigned to each role.');
?>
<br />
		<?php 
echo Rights::t('core', 'Authorization items can be managed under {roleLink}, {taskLink} and {operationLink}.', array('{roleLink}' => CHtml::link(Rights::t('core', 'Roles'), array('authItem/roles')), '{taskLink}' => CHtml::link(Rights::t('core', 'Tasks'), array('authItem/tasks')), '{operationLink}' => CHtml::link(Rights::t('core', 'Operations'), array('authItem/operations'))));
?>
	</p>

	<p><?php 
echo CHtml::link(Rights::t('core', 'Generate items for controller actions'), array('authItem/generate'), array('class' => 'generator-link'));
?>
</p>

	<?php 
$this->widget('bootstrap.widgets.TbExtendedGridView', array('dataProvider' => $dataProvider, 'type' => 'hover striped bordered', 'template' => '{items}', 'emptyText' => Rights::t('core', 'No authorization items found.'), 'htmlOptions' => array('class' => 'grid-view permission-table'), 'columns' => $columns));
?>
开发者ID:beckblurry,项目名称:Yii1-Base-Core-V.Alpha.1,代码行数:30,代码来源:permissions.php

示例5: 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

示例6: 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

示例7: array

<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::t('core', 'Tasks'));
?>

<div id="tasks">

	<h2><?php 
echo Rights::t('core', 'Tasks');
?>
</h2>

	<p>
		<?php 
echo Rights::t('core', 'A task is a permission to perform multiple operations, for example accessing a group of controller action.');
?>
<br />
		<?php 
echo Rights::t('core', 'Tasks exist below roles in the authorization hierarchy and can therefore only inherit from other tasks and/or operations.');
?>
	</p>

	<p><?php 
echo CHtml::link(Rights::t('core', 'Create a new task'), array('authItem/create', 'type' => CAuthItem::TYPE_TASK), array('class' => 'add-task-link'));
?>
</p>

	<?php 
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $dataProvider, 'template' => '{items}', 'emptyText' => Rights::t('core', 'No tasks found.'), 'htmlOptions' => array('class' => 'grid-view task-table'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getNameLink(false, true, true)'), array('name' => 'description', 'header' => Rights::t('core', 'Description'), 'type' => 'raw', 'htmlOptions' => array('class' => 'description-column')), array('name' => 'bizRule', 'header' => Rights::t('core', 'Business rule'), 'type' => 'raw', 'htmlOptions' => array('class' => 'bizrule-column'), 'visible' => Rights::module()->enableBizRule === true), array('name' => 'data', 'header' => Rights::t('core', 'Data'), 'type' => 'raw', 'htmlOptions' => array('class' => 'data-column'), 'visible' => Rights::module()->enableBizRuleData === true), array('header' => '&nbsp;', 'type' => 'raw', 'htmlOptions' => array('class' => 'actions-column'), 'value' => '$data->getDeleteTaskLink()'))));
?>
开发者ID:rusli-nasir,项目名称:smsempresayii,代码行数:30,代码来源:tasks.php

示例8: 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

示例9: array

<?php

$this->breadcrumbs = array('Phân quyền' => Rights::getBaseUrl(), Rights::t('core', 'Operations'));
?>

<div id="operations">

	<h2><?php 
echo Rights::t('core', 'Operations');
?>
</h2>

	<p>
		<?php 
echo Rights::t('core', 'An operation is a permission to perform a single operation, for example accessing a certain controller action.');
?>
<br />
		<?php 
echo Rights::t('core', 'Operations exist below tasks in the authorization hierarchy and can therefore only inherit from other operations.');
?>
	</p>

	<p><?php 
echo CHtml::link(Rights::t('core', 'Create a new operation'), array('authItem/create', 'type' => CAuthItem::TYPE_OPERATION), array('class' => 'add-operation-link'));
?>
</p>

	<?php 
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $dataProvider, 'template' => '{items}', 'emptyText' => Rights::t('core', 'No operations found.'), 'htmlOptions' => array('class' => 'grid-view operation-table sortable-table'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getGridNameLink()'), array('name' => 'description', 'header' => Rights::t('core', 'Description'), 'type' => 'raw', 'htmlOptions' => array('class' => 'description-column')), array('name' => 'bizRule', 'header' => Rights::t('core', 'Business rule'), 'type' => 'raw', 'htmlOptions' => array('class' => 'bizrule-column'), 'visible' => Rights::module()->enableBizRule === true), array('name' => 'data', 'header' => Rights::t('core', 'Data'), 'type' => 'raw', 'htmlOptions' => array('class' => 'data-column'), 'visible' => Rights::module()->enableBizRuleData === true), array('header' => '&nbsp;', 'type' => 'raw', 'htmlOptions' => array('class' => 'actions-column'), 'value' => '$data->getDeleteOperationLink()'))));
?>
开发者ID:ngdvan,项目名称:lntguitar,代码行数:30,代码来源:operations.php

示例10: array

<?php

$this->breadcrumbs = array('Home' => $this->createUrl('/admin'), 'Права доступа' => Rights::getBaseUrl(), Rights::t('core', 'Tasks'));
$this->pageHeader = Rights::t('core', 'Tasks');
$this->topButtons = $this->widget('application.modules.admin.widgets.SAdminTopButtons', array('template' => array('createTask'), 'elements' => array('createTask' => array('link' => array('authItem/create', 'type' => CAuthItem::TYPE_TASK), 'title' => Rights::t('core', 'Create a new task'), 'icon' => 'plus'))));
?>

<div id="tasks">

	<?php 
$this->beginClip('sidebarHelpText');
?>
		<?php 
echo Rights::t('core', 'A task is a permission to perform multiple operations, for example accessing a group of controller action.');
?>
<br />
		<?php 
echo Rights::t('core', 'Tasks exist below roles in the authorization hierarchy and can therefore only inherit from other tasks and/or operations.');
?>
	<?php 
$this->endClip();
?>

		<?php 
$this->sidebarContent = $this->renderPartial('/_menu', null, true);
?>

	<?php 
$this->widget('ext.sgridview.SGridView', array('dataProvider' => $dataProvider, 'template' => '{items}', 'emptyText' => Rights::t('core', 'No tasks found.'), 'htmlOptions' => array('class' => 'grid-view task-table'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getGridNameLink()'), array('name' => 'description', 'header' => Rights::t('core', 'Description'), 'type' => 'raw', 'htmlOptions' => array('class' => 'description-column')), array('name' => 'bizRule', 'header' => Rights::t('core', 'Business rule'), 'type' => 'raw', 'htmlOptions' => array('class' => 'bizrule-column'), 'visible' => Rights::module()->enableBizRule === true), array('name' => 'data', 'header' => Rights::t('core', 'Data'), 'type' => 'raw', 'htmlOptions' => array('class' => 'data-column'), 'visible' => Rights::module()->enableBizRuleData === true), array('header' => '&nbsp;', 'type' => 'raw', 'htmlOptions' => array('class' => 'actions-column'), 'value' => '$data->getDeleteTaskLink()'))));
?>
开发者ID:kolbensky,项目名称:rybolove,代码行数:30,代码来源:tasks.php

示例11: 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

示例12: array

<?php

$this->breadcrumbs = array('Rights' => $this->createUrl('/admin'), 'Права доступа' => Rights::getBaseUrl(), Rights::t('core', 'Assignments'));
$this->pageHeader = 'Привязки';
$this->sidebarContent = $this->renderPartial('/_menu', null, true);
$this->widget('ext.sgridview.SGridView', array('dataProvider' => $dataProvider, 'template' => "{items}{summary}{pager}", 'emptyText' => Rights::t('core', 'No users found.'), 'htmlOptions' => array('class' => 'grid-view assignment-table'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getAssignmentNameLink()'), array('name' => 'assignments', 'header' => Rights::t('core', 'Roles'), 'type' => 'raw', 'htmlOptions' => array('class' => 'role-column'), 'value' => '$data->getAssignmentsText(CAuthItem::TYPE_ROLE)'), array('name' => 'assignments', 'header' => Rights::t('core', 'Tasks'), 'type' => 'raw', 'htmlOptions' => array('class' => 'task-column'), 'value' => '$data->getAssignmentsText(CAuthItem::TYPE_TASK)'), array('name' => 'assignments', 'header' => Rights::t('core', 'Operations'), 'type' => 'raw', 'htmlOptions' => array('class' => 'operation-column'), 'value' => '$data->getAssignmentsText(CAuthItem::TYPE_OPERATION)'))));
开发者ID:kolbensky,项目名称:rybolove,代码行数:6,代码来源:view.php

示例13: 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

示例14: array

<?php

$this->breadcrumbs = array('Home' => $this->createUrl('/admin'), 'Права доступа' => Rights::getBaseUrl(), Rights::t('core', 'Assignments') => array('assignment/view'), $model->getName());
$this->sidebarContent = $this->renderPartial('/_menu', null, true);
$this->pageHeader = Rights::t('core', 'Assignments for :username', array(':username' => $model->getName()));
?>
<div id="rights">
<div id="userAssignments" class="padding-all">

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

		<?php 
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $dataProvider, 'template' => '{items}', 'hideHeader' => true, 'emptyText' => Rights::t('core', 'This user has not been assigned any items.'), 'htmlOptions' => array('class' => 'grid-view user-assignment-table mini'), 'columns' => array(array('name' => 'name', 'header' => Rights::t('core', 'Name'), 'type' => 'raw', 'htmlOptions' => array('class' => 'name-column'), 'value' => '$data->getNameText()'), array('name' => 'type', 'header' => Rights::t('core', 'Type'), 'type' => 'raw', 'htmlOptions' => array('class' => 'type-column'), 'value' => '$data->getTypeText()'), array('header' => '&nbsp;', 'type' => 'raw', 'htmlOptions' => array('class' => 'actions-column'), 'value' => '$data->getRevokeAssignmentLink()'))));
?>

	</div>

	<div class="add-assignment span-11 last">

		<h3><?php 
echo Rights::t('core', 'Assign item');
?>
</h3>

		<?php 
if ($formModel !== null) {
    ?>

			<div class="form">

				<?php 
开发者ID:kolbensky,项目名称:rybolove,代码行数:31,代码来源:user.php


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