/** * @copydoc GridCellProvider::getTemplateVarsFromRowColumn() */ function getTemplateVarsFromRowColumn($row, $column) { $monograph = $row->getData(); switch ($column->getId()) { case 'id': return array('label' => $monograph->getId()); case 'title': // Delegate to the submission grid cell provider that holds the logic // for the submission title plus author name. $user = Application::getRequest()->getUser(); import('lib.pkp.controllers.grid.submissions.SubmissionsListGridCellProvider'); $submissionsListCellProvider = new SubmissionsListGridCellProvider($user); return $submissionsListCellProvider->getTemplateVarsFromRowColumn($row, $column); case 'isFeatured': $featureDao = DAORegistry::getDAO('FeatureDAO'); return array('selected' => $featureDao->isFeatured($monograph->getId(), $this->_assocType, $this->_assocId)); case 'isNewRelease': $newReleaseDao = DAORegistry::getDAO('NewReleaseDAO'); return array('selected' => $newReleaseDao->isNewRelease($monograph->getId(), $this->_assocType, $this->_assocId)); } return parent::getTemplateVarsFromRowColumn($row, $column); }