/** * Renders row cells * * @return string */ protected function renderCells() { $row = $this->getDataRow(); $out = ''; foreach ($this->grid->getConfig()->getColumns() as $column) { $component = new TableCell($column); $component->initialize($this->grid); $component->setContent($column->getValue($row)); $out .= $component->render(); } return $out; }
/** * @param FieldConfig $column * @return $this */ public function setColumn(FieldConfig $column) { $this->setContent($column->getLabel()); if ($column->isSortable()) { $this->addComponent(new SortingControl($column)); } return parent::setColumn($column); }