getData(); assert(is_a($element, 'SubscriptionType')); $rowId = $this->getId(); if (!empty($rowId) && is_numeric($rowId)) { // Only add row actions if this is an existing row $router = $request->getRouter(); $actionArgs = array( 'gridId' => $this->getGridId(), 'rowId' => $rowId ); $actionArgs = array_merge($actionArgs, $this->getRequestArgs()); $this->addAction( new LinkAction( 'edit', new AjaxModal( $router->url($request, null, null, 'editSubscriptionType', null, $actionArgs), __('manager.subscriptionTypes.edit'), 'modal_edit', true ), __('common.edit'), 'edit') ); $this->addAction( new LinkAction( 'delete', new RemoteActionConfirmationModal( $request->getSession(), __('manager.subscriptionTypes.confirmDelete'), __('common.delete'), $router->url($request, null, null, 'deleteSubscriptionType', null, $actionArgs), 'modal_delete' ), __('grid.action.delete'), 'delete') ); } } } ?>