Feature #56556

support hasProperty and isProperty

Added by Simon Schaufelberger over 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-03-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

The way how you currently check for existence of a value in fluid is not nice.

<f:if condition="{object.hasChildren}">
[...]
</f:if>

results in a method in the Model:

public function getHasChildren()

Instead it should be possible to just write:

public funtion hasChildren()

Same for "is".

Inspired by: https://github.com/czenker/cz_simple_cal/blob/master/Classes/Domain/Model/Base.php


Related issues

Related to TYPO3 Core - Feature #56529: support hasProperty and isPropertyClosed2014-03-04

Actions

Also available in: Atom PDF