All empty double-quoted strings replaced with single-quotes
[core.git] / inc / classes / main / helper / web / forms / class_WebFormHelper.php
index 2fd68cc1b47e562b63884fe53bcecd2cf65129df..b816c337ed2c9f57db4537ca59093fef2196e180 100644 (file)
@@ -31,7 +31,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
        /**
         * Name of the form
         */
-       private $formName = "";
+       private $formName = '';
 
        /**
         * Wether form tag is enabled (default: true)
@@ -114,7 +114,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
                // Check wether we shall open or close the form
                if (($this->formOpened === false) && ($this->formEnabled === true)) {
                        // Add HTML code
-                       $formContent = sprintf("<form name=\"%s\" class=\"forms\" action=\"%s/%s\" method=\"%s\" target=\"%s\"",
+                       $formContent = sprintf("<form name=\"%s\" class=\"forms\" action=\"%s/%s\" method=\"%s\" target=\"%s\'',
                                $formName,
                                $this->getConfigInstance()->readConfig('base_url'),
                                $this->getConfigInstance()->readConfig('form_action'),
@@ -123,7 +123,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
                        );
 
                        // Add form id as well
-                       $formContent .= sprintf(" id=\"%s_form\"",
+                       $formContent .= sprintf(" id=\"%s_form\'',
                                $formId
                        );
 
@@ -162,7 +162,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
         * @return      void
         * @throws      FormClosedException             If the form is not yet opened
         */
-       public function addInputTextField ($fieldName, $fieldValue = "") {
+       public function addInputTextField ($fieldName, $fieldValue = '') {
                // Is the form opened?
                if (($this->formOpened === false) && ($this->formEnabled === true)) {
                        // Throw an exception
@@ -204,7 +204,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
         * @return      void
         * @throws      FormClosedException             If the form is not yet opened
         */
-       public function addInputPasswordField ($fieldName, $fieldValue = "") {
+       public function addInputPasswordField ($fieldName, $fieldValue = '') {
                // Is the form opened?
                if (($this->formOpened === false) && ($this->formEnabled === true)) {
                        // Throw an exception
@@ -231,7 +231,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
         * @return      void
         * @throws      FormClosedException             If the form is not yet opened
         */
-       public function addInputHiddenField ($fieldName, $fieldValue = "") {
+       public function addInputHiddenField ($fieldName, $fieldValue = '') {
                // Is the form opened?
                if (($this->formOpened === false) && ($this->formEnabled === true)) {
                        // Throw an exception
@@ -296,7 +296,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
                } // END - if
 
                // Set wether the check box is checked...
-               $checked = " checked=\"checked\"";
+               $checked = " checked=\"checked\'';
                if ($fieldChecked === false) $checked = " ";
 
                // Generate the content
@@ -370,7 +370,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
         * @throws      FormClosedException             If no form has been opened before
         * @throws      EmptyVariableException  If $groupId is not set
         */
-       public function addFormGroup ($groupId = "", $groupText = "") {
+       public function addFormGroup ($groupId = '', $groupText = '') {
                // Is a form opened?
                if (($this->formOpened === false) && ($this->formEnabled === true)) {
                        // Throw exception here
@@ -445,7 +445,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
         * @throws      FormFormClosedException         If no group has been opened before
         * @throws      EmptyVariableException          If $subGroupId is not set
         */
-       public function addFormSubGroup ($subGroupId = "", $subGroupText = "") {
+       public function addFormSubGroup ($subGroupId = '', $subGroupText = '') {
                // Is a group opened?
                if ($this->ifGroupOpenedPreviously() === false) {
                        // Throw exception here