00001 <?php
00002
00015 import('lib.pkp.classes.controllers.grid.GridCategoryRow');
00016
00017
00018 import('lib.pkp.classes.linkAction.request.AjaxModal');
00019 import('lib.pkp.classes.linkAction.request.RemoteActionConfirmationModal');
00020
00021
00022 class FooterGridCategoryRow extends GridCategoryRow {
00024 var $_press;
00025
00029 function FooterGridCategoryRow() {
00030 parent::GridCategoryRow();
00031 }
00032
00033 function initialize(&$request) {
00034
00035 parent::initialize($request);
00036
00037
00038 $footerCategoryId = $this->getId();
00039 if (!empty($footerCategoryId) && is_numeric($footerCategoryId)) {
00040 $footerCategory =& $this->getData();
00041
00042 $router =& $request->getRouter();
00043 $actionArgs = array(
00044 'footerCategoryId' => $footerCategoryId
00045 );
00046
00047 $this->addAction(
00048 new LinkAction(
00049 'deleteFooterCategory',
00050 new RemoteActionConfirmationModal(
00051 __('grid.content.navigation.footer.deleteCategoryConfirm'),
00052 __('grid.content.navigation.footer.deleteCategory'),
00053 $router->url($request, null, null, 'deleteFooterCategory', null, $actionArgs),
00054 'modal_delete'
00055 ),
00056 null,
00057 'delete'
00058 ), GRID_ACTION_POSITION_ROW_LEFT
00059 );
00060
00061 $this->addAction(
00062 new LinkAction(
00063 'editFooterCategory',
00064 new AjaxModal(
00065 $router->url($request, null, null, 'editFooterCategory', null, $actionArgs),
00066 __('grid.content.navigation.footer.editCategory'),
00067 'modal_edit'
00068 ),
00069 $footerCategory->getLocalizedTitle()
00070 ), GRID_ACTION_POSITION_ROW_CLICK
00071 );
00072 }
00073 }
00074
00075
00076
00077
00078
00084 function getCategoryLabel() {
00085 return '';
00086 }
00087 }
00088 ?>