Open Journal Systems  3.3.0
UserListbuilderGridCellProvider.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.grid.GridCellProvider');
17 
19 
20  //
21  // Template methods from GridCellProvider
22  //
31  function getTemplateVarsFromRowColumn($row, $column) {
32  $user =& $row->getData();
33  $columnId = $column->getId();
34  // Allow for either Users or Authors (both have a getFullName method).
35  assert((is_a($user, 'User') || is_a($user, 'Author')) && !empty($columnId));
36 
37  return array('labelKey' => $user->getId(), 'label' => $user->getFullName() . ' <' . $user->getEmail() . '>');
38  }
39 }
40 
41 
UserListbuilderGridCellProvider\getTemplateVarsFromRowColumn
getTemplateVarsFromRowColumn($row, $column)
Definition: UserListbuilderGridCellProvider.inc.php:31
GridCellProvider
Base class for a grid column's cell provider.
Definition: GridCellProvider.inc.php:20
UserListbuilderGridCellProvider
Base class for a cell provider that can retrieve labels from arrays.
Definition: UserListbuilderGridCellProvider.inc.php:18