15 import(
'lib.pkp.classes.controllers.grid.GridCellProvider');
27 $element = $row->getData();
28 $columnId = $column->getId();
29 assert(is_a($element,
'Section') && !empty($columnId));
32 return array(
'selected' => $element[
'inactive']);
34 return parent::getTemplateVarsFromRowColumn($row, $column);
40 function getCellActions($request, $row, $column, $position = GRID_ACTION_POSITION_DEFAULT) {
41 switch ($column->getId()) {
43 $element = $row->getData();
45 $router = $request->getRouter();
46 import(
'lib.pkp.classes.linkAction.LinkAction');
48 if ($element[
'inactive']) {
52 $request->getSession(),
53 __(
'manager.sections.confirmActivateSection'),
58 'grid.settings.sections.SectionGridHandler',
61 array(
'sectionKey' => $row->getId())
69 $request->getSession(),
70 __(
'manager.sections.confirmDeactivateSection'),
75 'grid.settings.sections.SectionGridHandler',
78 array(
'sectionKey' => $row->getId())
84 return parent::getCellActions($request, $row, $column, $position);