private function getCellText($cell) { if (($data = $cell->getText()) === '' && $cell->getHasControls()) { $controls = $cell->getControls(); foreach ($controls as $control) { if ($control instanceof \Prado\IDataRenderer) { return $control->getData(); } } } return $data; }