[TASK] Adjust Comments to describe string comparison
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 8 Apr 2013 04:01:01 +0000 (06:01 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 9 Apr 2013 20:57:26 +0000 (22:57 +0200)
The IfViewHelper received the ability to compare strings natively some
time ago, but the comment in the class describing the usage was not
updated.

Resolves: #47034
Releases: 6.1
Change-Id: I7a41ab555908ee84dbebabc8f9147d8f61a47b2e
Reviewed-on: https://review.typo3.org/19738
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/fluid/Classes/ViewHelpers/IfViewHelper.php

index c8114a0..04eba7a 100644 (file)
@@ -29,10 +29,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  * - Object Accessor
  * - Array
  * - a ViewHelper
- * Note: Strings at XX/YY are NOT allowed, however, for the time being,
- * a string comparison can be achieved with comparing arrays (see example
- * below).
- * ::
+ * - a String
  *
  *   <f:if condition="{rank} > 100">
  *     Will be shown if rank is > 100
@@ -43,7 +40,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  *   <f:if condition="{rank} == {k:bar()}">
  *     Checks if rank is equal to the result of the ViewHelper "k:bar"
  *   </f:if>
- *   <f:if condition="{0: foo.bar} == {0: 'stringToCompare'}">
+ *   <f:if condition="{foo.bar} == 'stringToCompare'">
  *     Will result true if {foo.bar}'s represented value equals 'stringToCompare'.
  *   </f:if>
  *