hasFlag('firstColumn')) { return array('label' => $row->getCategoryLabel()); } else { return array('label' => ''); } } /** * @copydoc GridCellProvider::getCellActions() */ function getCellActions($request, $row, $column, $position = GRID_ACTION_POSITION_ROW_CLICK) { return $row->getActions($position); } /** * @see GridCellProvider::render() */ function render($request, $row, $column) { // Default category rows will only have the first column // as label columns. if ($column->hasFlag('firstColumn')) { // Store the current column template. $template = $column->getTemplate(); // Reset to the default column template. $column->setTemplate('controllers/grid/gridCell.tpl'); // Render the cell. $renderedCell = parent::render($request, $row, $column); // Restore the original column template. $column->setTemplate($template); return $renderedCell; } else { return ''; } } } ?>