<?
// setup paginated role adapter.
$adapter = new Zend_Paginator_Adapter_Iterator($this->roles);
$paginator = new Zend_Paginator($adapter);
$paginator->setCurrentPageNumber($this->pageOffset);
$paginator->setItemCountPerPage($this->pageSize);
// serve dojo data to populate the data grid.
// pass per-item callback to craft each entry.
print $this->dataGrid()->dojoData(
$paginator,
function($role, $dataGrid)
{
return array(
'id' => $role->getId(),
'type' => ucfirst($role->getType()),
'isSystem' => $role->isSystem(),
'isVirtual' => $role->isVirtual(),
'usersCount' => $role->isVirtual() ? null : count($role->getRealUsers()),
'editUri' => $dataGrid->view->url(
array('module' => 'user', 'controller' => 'role', 'action' => 'edit', 'id' => $role->getId())
),
'deleteUri' => $dataGrid->view->url(
array('module' => 'user', 'controller' => 'role', 'action' => 'delete', 'id' => $role->getId())
),
);
}
);
# |
Change |
User |
Description |
Committed |
|
#1
|
16170 |
perforce_software |
Move Chronicle files to follow new path scheme for branching. |
|
|
//guest/perforce_software/chronicle/application/user/views/scripts/role/index.json.phtml |
#1
|
8972 |
Matt Attaway |
Initial add of the Chronicle source code |
|
|