Prado\Web\UI\WebControls\TDataGridColumn::initializeFooterCell PHP Method

initializeFooterCell() protected method

This method attempts to use {@link getFooterRenderer FooterRenderer} to instantiate the footer cell. If that is not available, it will populate the cell with a text string specified by {@link getFooterImageUrl FooterImageUrl}
protected initializeFooterCell ( $cell, $columnIndex )
    protected function initializeFooterCell($cell, $columnIndex)
    {
        $text = $this->getFooterText();
        if (($classPath = $this->getFooterRenderer()) !== '') {
            $control = Prado::createComponent($classPath);
            $cell->getControls()->add($control);
            if ($control instanceof \Prado\IDataRenderer) {
                if ($control instanceof IItemDataRenderer) {
                    $item = $cell->getParent();
                    $control->setItemIndex($item->getItemIndex());
                    $control->setItemType($item->getItemType());
                }
                $control->setData($text);
            }
        } else {
            if ($text !== '') {
                $cell->setText($text);
            } else {
                $cell->setText(' ');
            }
        }
    }