Open Monograph Press
3.3.0
ArrayGridCellProvider.inc.php
1
<?php
2
16
import
(
'lib.pkp.classes.controllers.grid.GridCellProvider'
);
17
18
class
ArrayGridCellProvider
extends
GridCellProvider
{
19
20
//
21
// Template methods from GridCellProvider
22
//
31
function
getTemplateVarsFromRowColumn
($row, $column) {
32
$element =& $row->getData();
33
$columnId = $column->getId();
34
switch
($columnId) {
35
case
'id'
:
36
return
array(
'label'
=> $row->getId());
37
default
:
38
assert(is_array($element) && in_array($columnId, array_keys($element)));
39
return
array(
'label'
=> $element[$columnId]);
40
};
41
}
42
}
43
44
ArrayGridCellProvider
Base class for a cell provider that can retrieve labels from arrays.
Definition:
ArrayGridCellProvider.inc.php:18
GridCellProvider
Base class for a grid column's cell provider.
Definition:
GridCellProvider.inc.php:20
ArrayGridCellProvider\getTemplateVarsFromRowColumn
getTemplateVarsFromRowColumn($row, $column)
Definition:
ArrayGridCellProvider.inc.php:31
lib
pkp
classes
controllers
grid
ArrayGridCellProvider.inc.php
Generated on Fri Aug 28 2020 14:51:25 for Open Monograph Press by
1.8.17