/** * Cell Drawing override * * @param \APY\DataGridBundle\Grid\Column\Column $column * @param \APY\DataGridBundle\Grid\Row $row * @param \APY\DataGridBundle\Grid\Grid $grid * * @return string */ public function getGridCell($column, $row, $grid) { $value = $column->renderCell($row->getField($column->getId()), $row, $this->router); $id = $this->names[$grid->getHash()]; if ($id != '' && ($this->hasBlock($block = 'grid_' . $id . '_column_' . $column->getRenderBlockId() . '_cell') || $this->hasBlock($block = 'grid_' . $id . '_column_' . $column->getType() . '_cell') || $this->hasBlock($block = 'grid_' . $id . '_column_' . $column->getParentType() . '_cell')) || $this->hasBlock($block = 'grid_column_' . $column->getRenderBlockId() . '_cell') || $this->hasBlock($block = 'grid_column_' . $column->getType() . '_cell') || $this->hasBlock($block = 'grid_column_' . $column->getParentType() . '_cell')) { return $this->renderBlock($block, array('grid' => $grid, 'column' => $column, 'row' => $row, 'value' => $value)); } return $this->renderBlock('grid_column_cell', array('grid' => $grid, 'column' => $column, 'row' => $row, 'value' => $value)); }
public function renderCell($value, $row, $router) { $value = parent::renderCell($value, $row, $router); return $value ?: 'false'; }