Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
CategoryListbuilderGridCellProvider.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.grid.GridCellProvider');
17 
23  parent::GridCellProvider();
24  }
25 
26  //
27  // Template methods from GridCellProvider
28  //
37  function getTemplateVarsFromRowColumn($row, $column) {
38  $category = $row->getData();
39  $columnId = $column->getId();
40  assert((is_a($category, 'Category')) && !empty($columnId));
41 
42  return array('labelKey' => $category->getId(), 'label' => $category->getLocalizedTitle());
43  }
44 }
45 
46 ?>
Base class for a grid column&#39;s cell provider.
Class for a cell provider that provides category information.