Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
view.php
1 <?php
2 $this->breadcrumbs = !$this->invoker ? array('Rights'=>Rights::getBaseUrl()) : array('Users'=>$this->invoker->getBaseUrl());
3 $this->breadcrumbs = array_merge($this->breadcrumbs , array(
4  Rights::t('core', 'Assignments'),
5  )
6 ); ?>
7 
8 <div id="assignments">
9 
10  <h2><?php echo Rights::t('core', 'Assignments'); ?></h2>
11 
12  <p>
13  <?php echo Rights::t('core', 'Here you can view which permissions has been assigned to each user.'); ?>
14  </p>
15 
16  <?php $this->widget('zii.widgets.grid.CGridView', array(
17  'dataProvider'=>$dataProvider,
18  'template'=>"{items}\n{pager}",
19  'emptyText'=>Rights::t('core', 'No users found.'),
20  'htmlOptions'=>array('class'=>'grid-view assignment-table'),
21  'columns'=>array(
22  array(
23  'name'=>'name',
24  'header'=>Rights::t('core', 'Email'),
25  'type'=>'raw',
26  'htmlOptions'=>array('class'=>'name-column'),
27  'value'=>'$data->getAssignmentNameLink()',
28  ),
29  array(
30  'name'=>'assignments',
31  'header'=>Rights::t('core', 'Roles'),
32  'type'=>'raw',
33  'htmlOptions'=>array('class'=>'role-column'),
34  'value'=>'$data->getAssignmentsText(CAuthItem::TYPE_ROLE)',
35  ),
36  array(
37  'name'=>'assignments',
38  'header'=>Rights::t('core', 'Tasks'),
39  'type'=>'raw',
40  'htmlOptions'=>array('class'=>'task-column'),
41  'value'=>'$data->getAssignmentsText(CAuthItem::TYPE_TASK)',
42  ),
43  array(
44  'name'=>'assignments',
45  'header'=>Rights::t('core', 'Operations'),
46  'type'=>'raw',
47  'htmlOptions'=>array('class'=>'operation-column'),
48  'value'=>'$data->getAssignmentsText(CAuthItem::TYPE_OPERATION)',
49  ),
50  )
51  )); ?>
52 
53 </div>