Task #8824

Create an abstract base class for Condition ViewHelpers to remove Code Duplication

Added by Sebastian Kurfuerst almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
-
Target version:
-
Start date:
2010-07-12
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

In FLOW3, we already have quite some condition ViewHelpers (f:if, f:security.if*). It turns out they all use a private API inside the framework, as they directly implement the ChildNodeAccessInterface, which is no public API.

Proposed solution
Create a new base class \F3\Fluid\Core\ViewHelper\ConditionViewHelper which should be used as a basis of condition-based ViewHelpers.

Breaking change

This is a breaking change for people who copied the "if"-ViewHelper and did their own condition evaluation, as the internal workings of the "if"-ViewHelper changed.

How to upgrade

Have a look at the new IfViewHelper, and see that it is now far easier to get up and running.

#1

Updated by Sebastian Kurfuerst almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 90 to 100

committed in r4836.

Also available in: Atom PDF