Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
BaseSignoffStatusColumn.inc.php
1 <?php
15 import('lib.pkp.classes.controllers.grid.GridColumn');
16 
19  var $_requestArgs;
20 
21  /* @var array */
22  var $_userIds;
23 
32  function BaseSignoffStatusColumn($id = '', $title = null, $titleTranslated = null, $userIds, $requestArgs = array(), $flags = array()) {
33  $this->_requestArgs = $requestArgs;
34  $this->_userIds = $userIds;
35 
36  // Configure the column.
37  import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider');
38  $cellProvider = new ColumnBasedGridCellProvider();
39  parent::GridColumn(
40  $id,
41  $title,
42  $titleTranslated,
43  'controllers/grid/common/cell/statusCell.tpl',
44  $cellProvider,
45  $flags
46  );
47  }
48 
49 
50  //
51  // Getters and Setters
52  //
57  function getRequestArgs() {
58  return $this->_requestArgs;
59  }
60 
65  function getUserIds() {
66  return $this->_userIds;
67  }
68 
69  //
70  // Public methods
71  //
78  function getTemplateVarsFromRow($row) {
79  return array('status' => $this->_getSignoffStatus($row));
80  }
81 
82 
83  //
84  // Overridden methods from GridColumn
85  //
89  function getCellActions($request, $row) {
90  return array();
91  }
92 
93 
94  //
95  // Private helper methods
96  //
102  function _getSignoffStatus($row) {
103  assert(false); // Abstract method
104  }
105 }
106 
107 ?>
BaseSignoffStatusColumn($id= '', $title=null, $titleTranslated=null, $userIds, $requestArgs=array(), $flags=array())
Implements a grid column for a user group/signoff column.
A cell provider that relies on the column implementation to provide cell content. Use this cell provi...
Represents a column within a grid. It is used to configure the way cells within a column are displaye...