_userId = $userId; } // // Template methods from GridCellProvider // /** * Extracts variables for a given column from a data element * so that they may be assigned to template before rendering. * * @param \PKP\controllers\grid\GridRow $row * @param GridColumn $column * * @return array */ public function getTemplateVarsFromRowColumn($row, $column) { $element = $row->getData(); assert(is_a($element, 'User')); switch ($column->getId()) { case 'select': // Displays the radio option return ['rowId' => $row->getId(), 'userId' => $this->_userId]; case 'name': // User's name return ['label' => $element->getFullName()]; } assert(false); } }