/** * @see UserGroupColiumn::getTemplateVarsFromRowColumn() */ function getTemplateVarsFromRow($row) { $templateVars = parent::getTemplateVarsFromRow($row); // Retrieve the monograph file. $monographFile =& $this->getMonographFile($row); // By default we return an empty cell. $templateVars = array('status' => ''); // Find out whether the uploader of the current file // belongs to the user group displayed in this column. $uploaderUserGroup =& $this->getUserGroup(); if ($uploaderUserGroup->getId() == $monographFile->getUserGroupId()) { // Show that this column's user group is the uploading // user group. $templateVars = array('status' => 'uploaded'); } return $templateVars; }
/** * Constructor * @param $signoffUserGroup UserGroup The user * group to be represented in this column. * @param $stageId integer One of the WORKFLOW_STAGE_ID_* constants. * @param $requestArgs array Parameters for cell actions. */ function SignoffStatusGridColumn(&$signoffUserGroup, $stageId, $requestArgs) { $this->_stageId = $stageId; $this->_requestArgs = $requestArgs; parent::UserGroupColumn($signoffUserGroup, 'signoff'); }