* Documentation Cleanup
authorSebastian Kurfürst <sebastian@typo3.org>
Wed, 22 Sep 2010 06:27:14 +0000 (06:27 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Wed, 22 Sep 2010 06:27:14 +0000 (06:27 +0000)
typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/ErrorsViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php

index 1609d51..ee09237 100644 (file)
@@ -63,11 +63,11 @@ abstract class Tx_Fluid_ViewHelpers_Form_AbstractFormFieldViewHelper extends Tx_
                        $formObjectName = $this->viewHelperVariableContainer->get('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObjectName');
                        if (!empty($formObjectName)) {
                                $propertySegments = explode('.', $this->arguments['property']);
-                               $properties = '';
+                               $propertyPath = '';
                                foreach ($propertySegments as $segment) {
-                                       $properties .= '[' . $segment . ']';
+                                       $propertyPath .= '[' . $segment . ']';
                                }
-                               $name = $formObjectName . $properties;
+                               $name = $formObjectName . $propertyPath;
                        } else {
                                $name = $this->arguments['property'];
                        }
@@ -119,17 +119,17 @@ abstract class Tx_Fluid_ViewHelpers_Form_AbstractFormFieldViewHelper extends Tx_
        protected function addAdditionalIdentityPropertiesIfNeeded() {
                $propertySegments = explode('.', $this->arguments['property']);
                if (count($propertySegments) >= 2) {
-                       // hierarchical property. If there is no "." inside (thus $propertySegments == 1), we do not need to do anything
+                               // hierarchical property. If there is no "." inside (thus $propertySegments == 1), we do not need to do anything
                        $formObject = $this->viewHelperVariableContainer->get('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObject');
 
                        $objectName = $this->viewHelperVariableContainer->get('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObjectName');
-                       // If Count == 2 -> we need to go through the for-loop exactly once
+                               // If Count == 2 -> we need to go through the for-loop exactly once
                        for ($i=1; $i < count($propertySegments); $i++) {
                                $object = Tx_Extbase_Reflection_ObjectAccess::getPropertyPath($formObject, implode('.', array_slice($propertySegments, 0, $i)));
                                $objectName .= '[' . $propertySegments[$i-1] . ']';
                                $hiddenIdentityField = $this->renderHiddenIdentityField($object, $objectName);
 
-                               // Add the hidden identity field to the ViewHelperVariableContainer
+                                       // Add the hidden identity field to the ViewHelperVariableContainer
                                $additionalIdentityProperties = $this->viewHelperVariableContainer->get('Tx_Fluid_ViewHelpers_FormViewHelper', 'additionalIdentityProperties');
                                $additionalIdentityProperties[$objectName] = $hiddenIdentityField;
                                $this->viewHelperVariableContainer->addOrUpdate('Tx_Fluid_ViewHelpers_FormViewHelper', 'additionalIdentityProperties', $additionalIdentityProperties);
index 9f0142f..8e90c64 100644 (file)
@@ -123,9 +123,9 @@ class Tx_Fluid_ViewHelpers_Form_SelectViewHelper extends Tx_Fluid_ViewHelpers_Fo
 
                $content = '';
 
-               // register field name for token generation.
-               // in case it is a multi-select, we need to register the field name
-               // as often as there are elements in the box
+                       // register field name for token generation.
+                       // in case it is a multi-select, we need to register the field name
+                       // as often as there are elements in the box
                if ($this->arguments->hasArgument('multiple') && $this->arguments['multiple'] !== '') {
                        $content .= $this->renderHiddenFieldForEmptyValue();
                        for ($i=0; $i<count($options); $i++) {
index cf4665a..59088d4 100644 (file)
@@ -27,7 +27,6 @@ include_once(dirname(__FILE__) . '/../Fixtures/ConstraintSyntaxTreeNode.php');
 require_once(dirname(__FILE__) . '/../ViewHelperBaseTestcase.php');
 
 /**
- * @version $Id:$
  */
 class Tx_Fluid_ViewHelpers_Form_ErrorsViewHelperTest extends Tx_Fluid_ViewHelpers_ViewHelperBaseTestcase {
        /**
index 87a6eb1..8a2d370 100644 (file)
@@ -26,7 +26,6 @@
 require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
 
 /**
- * @version $Id:$
  */
 class Tx_Fluid_ViewHelpers_FormViewHelperTest extends Tx_Fluid_ViewHelpers_ViewHelperBaseTestcase {
        /**