GridHandler::renderGridBodyPartsInternally PHP Méthode

renderGridBodyPartsInternally() protected méthode

Method that renders tbodys to go in the grid main body.
protected renderGridBodyPartsInternally ( Request $request ) : array
$request Request
Résultat array
    protected function renderGridBodyPartsInternally($request)
    {
        // Render the rows.
        $elements = $this->getGridDataElements($request);
        $renderedRows = $this->renderRowsInternally($request, $elements);
        // Render the body part.
        $templateMgr = TemplateManager::getManager($request);
        $gridBodyParts = array();
        if (count($renderedRows) > 0) {
            $templateMgr->assign('grid', $this);
            $templateMgr->assign('rows', $renderedRows);
            $gridBodyParts[] = $templateMgr->fetch('controllers/grid/gridBodyPart.tpl');
        }
        return $gridBodyParts;
    }