Skip to content
Snippets Groups Projects
Commit 58cab336 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] PHP 7 compatibility

parent 356427c5
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment