00001 <?php
00002
00015 import('lib.pkp.classes.controllers.grid.GridCategoryRow');
00016
00017 class UserGroupGridRow extends GridRow {
00018
00022 function UserGroupGridRow() {
00023 parent::GridRow();
00024 }
00025
00026
00027
00028
00032 function initialize(&$request) {
00033 parent::initialize($request);
00034
00035 $rowData =& $this->getData();
00036 assert($rowData != null);
00037
00038 $rowId = $this->getId();
00039
00040
00041 if (!empty($rowId) && is_numeric($rowId)) {
00042 $actionArgs = array('userGroupId' => $rowData->getId());
00043 $router =& $request->getRouter();
00044
00045 $ajaxModal = new AjaxModal($router->url($request, null, null, 'editUserGroup', null, $actionArgs), __('grid.action.edit'), 'modal_edit');
00046 $editUserGroupLinkAction = new LinkAction(
00047 'editUserGroup',
00048 $ajaxModal,
00049 __('grid.action.edit'),
00050 'edit'
00051 );
00052 $this->addAction($editUserGroupLinkAction);
00053 }
00054 }
00055 }
00056
00057 ?>