message = $message; } $this->showrecordcount = $showrecordcount; } public function getHTMLFragments($gridField) { $count = $gridField->getList()->count(); $forTemplate = new ArrayData(array( 'ShowRecordCount' => $this->showrecordcount, 'Message' => $this->message, 'FirstShownRecord' => 1, 'LastShownRecord' => $count, 'NumRecords' => $count )); $template = SSViewer::get_templates_by_class($this, '', __CLASS__); return array( 'footer' => $forTemplate->renderWith( $template, array( 'Colspan' => count($gridField->getColumns()) ) ) ); } }