From 58cab33684102eb0caab7392841824ced15fd4e2 Mon Sep 17 00:00:00 2001 From: Stefan Galinski <stefan@sgalinski.de> Date: Fri, 2 Sep 2016 18:01:55 +0200 Subject: [PATCH] [BUGFIX] PHP 7 compatibility --- Classes/ViewHelpers/ExtendedIfViewHelper.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Classes/ViewHelpers/ExtendedIfViewHelper.php b/Classes/ViewHelpers/ExtendedIfViewHelper.php index 6fad1ac..e1e50c2 100644 --- a/Classes/ViewHelpers/ExtendedIfViewHelper.php +++ b/Classes/ViewHelpers/ExtendedIfViewHelper.php @@ -32,6 +32,22 @@ use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper; * ExtendedIfViewHelper */ class ExtendedIfViewHelper extends AbstractConditionViewHelper { + /** + * @return void + */ + public function initializeArguments() { + $this->registerArgument('condition', 'boolean', 'Condition to be evaluated.'); + $this->registerArgument('or', 'boolean', 'First or condition'); + $this->registerArgument('or2', 'boolean', 'Second or condition'); + $this->registerArgument('or3', 'boolean', 'Third or condition'); + $this->registerArgument('or4', 'boolean', 'Fourth or condition'); + $this->registerArgument('and', 'boolean', 'First and condition'); + $this->registerArgument('and2', 'boolean', 'Second and condition'); + $this->registerArgument('and3', 'boolean', 'Third and condition'); + $this->registerArgument('and4', 'boolean', 'Fourth and condition'); + $this->registerArgument('negate', 'boolean', 'Negate complete condition'); + } + /** * renders <f:then> child if $condition or $or is true, otherwise renders <f:else> child. * -- GitLab