Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ArrayGridCellProvider.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.grid.GridCellProvider');
17 
22  function ArrayGridCellProvider() {
23  parent::GridCellProvider();
24  }
25 
26  //
27  // Template methods from GridCellProvider
28  //
37  function getTemplateVarsFromRowColumn($row, $column) {
38  $element =& $row->getData();
39  $columnId = $column->getId();
40  assert(is_array($element) && in_array($columnId, array_keys($element)));
41  return array('label' => $element[$columnId]);
42  }
43 }
44 
45 ?>
getTemplateVarsFromRowColumn($row, $column)
Base class for a grid column&#39;s cell provider.
Base class for a cell provider that can retrieve labels from arrays.