From 40d0e682dc1dc8928360a3df3891d67e433cb08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Scho=CC=88ne?= Date: Mon, 29 Jul 2019 09:55:18 +0200 Subject: [PATCH] Fix PHP error due to incompatible declaration of render() method --- Classes/View/Export/CsvListView.php | 2 +- Classes/View/Export/ExcelListView.php | 2 +- Classes/View/Export/FluidListView.php | 2 +- Classes/View/Export/PdfListView.php | 8 ++++---- Classes/View/Export/WkHtml2PdfListView.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Classes/View/Export/CsvListView.php b/Classes/View/Export/CsvListView.php index 4fb4e778f..4b4fc7794 100755 --- a/Classes/View/Export/CsvListView.php +++ b/Classes/View/Export/CsvListView.php @@ -99,7 +99,7 @@ public function initConfiguration() * * @return void (never returns) */ - public function render() + public function render($actionName = null) { $this->templateVariableContainer = $this->baseRenderingContext->getTemplateVariableContainer(); diff --git a/Classes/View/Export/ExcelListView.php b/Classes/View/Export/ExcelListView.php index f48e49b29..6ce693fd6 100755 --- a/Classes/View/Export/ExcelListView.php +++ b/Classes/View/Export/ExcelListView.php @@ -128,7 +128,7 @@ class Tx_PtExtlist_View_Export_ExcelListView extends Tx_PtExtlist_View_Export_Ab /** * Overwriting the render method to generate Excel output */ - public function render() + public function render($actionName = null) { $this->init(); diff --git a/Classes/View/Export/FluidListView.php b/Classes/View/Export/FluidListView.php index 8ab3b13eb..2bf3a39bc 100755 --- a/Classes/View/Export/FluidListView.php +++ b/Classes/View/Export/FluidListView.php @@ -60,7 +60,7 @@ public function initConfiguration() * * @return void (never returns) */ - public function render() + public function render($actionName = null) { ob_clean(); diff --git a/Classes/View/Export/PdfListView.php b/Classes/View/Export/PdfListView.php index ca1808f41..dbd55f6c4 100755 --- a/Classes/View/Export/PdfListView.php +++ b/Classes/View/Export/PdfListView.php @@ -66,7 +66,7 @@ class Tx_PtExtlist_View_Export_PdfListView extends Tx_PtExtlist_View_Export_Abst */ protected $cssFilePath; - + /** * Initialize additional class properties */ @@ -80,7 +80,7 @@ public function initConfiguration() $this->paperSize = strtolower($this->exportConfiguration->getSettings('paperSize')); Tx_PtExtbase_Assertions_Assert::isNotEmptyString($this->paperSize, ['message' => 'No PaperSize given for the PDF output! 1322585559']); - + $this->paperOrientation = $this->exportConfiguration->getSettings('paperOrientation'); Tx_PtExtbase_Assertions_Assert::isInArray($this->paperOrientation, ['portrait', 'landscape'], ['message' => 'The Orientation must either be portrait or landscape! 1322585560']); @@ -115,7 +115,7 @@ public function loadDomPDFClasses() /* $includePath = $this->dompdfSourcePath . 'include/'; - + // load includes require_once $includePath . 'dompdf.cls.php'; require_once $includePath . 'frame_tree.cls.php'; @@ -175,7 +175,7 @@ public function loadDomPDFClasses() * * @return void (never returns) */ - public function render() + public function render($actionName = null) { $this->loadDomPDFClasses(); diff --git a/Classes/View/Export/WkHtml2PdfListView.php b/Classes/View/Export/WkHtml2PdfListView.php index ab846a112..e47d569d9 100755 --- a/Classes/View/Export/WkHtml2PdfListView.php +++ b/Classes/View/Export/WkHtml2PdfListView.php @@ -211,7 +211,7 @@ public function initConfiguration() * * Partly taken from https://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp */ - public function render() + public function render($actionName = null) { $htmlDocument = $this->tempPdfBasePath . basename($this->tmp);