]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/helper/web/class_WebFormHelper.php
Intercepting filter basicly added, generic form processor implemented (unfinished...
[shipsimu.git] / inc / classes / main / helper / web / class_WebFormHelper.php
index 41ad0fd33a7c8075c7e7e0d4c44660410b03b826..0c761d8fc7f27a4bd76c6d7934ae8b1aa0ab2d60 100644 (file)
@@ -161,13 +161,11 @@ class WebFormHelper extends BaseHelper {
         * opened. The field's name will be set as id.
         *
         * @param       $fieldName                      Input field name
-        * @param       $fieldSize                      Input size
-        * @param       $fieldMaxLength         Input max length
         * @param       $fieldValue                     Input default value (default: empty)
         * @return      void
         * @throws      FormClosedException             If the form is not yet opened
         */
-       public function addInputTextField ($fieldName, $fieldSize, $fieldMaxLength, $fieldValue = "") {
+       public function addInputTextField ($fieldName, $fieldValue = "") {
                // Is the form opened?
                if ($this->formOpened === false) {
                        // Throw an exception
@@ -175,8 +173,11 @@ class WebFormHelper extends BaseHelper {
                }
 
                // Generate the content
-               $inputContent = sprintf("<input type=\"text\" class=\"textfield\" id=\"%s\" name=\"%s\" size=\"%d\" maxlength=\"%d\" value=\"%s\" />",
-                       $fieldName, $fieldName, $fieldSize, $fieldMaxLength, $fieldValue);
+               $inputContent = sprintf("<input type=\"text\" class=\"textfield\" id=\"%s\" name=\"%s\" value=\"%s\" />",
+                       $fieldName,
+                       $fieldName,
+                       $fieldValue
+               );
 
                // And add it maybe with a "li" tag
                $this->addContent($inputContent);
@@ -187,13 +188,11 @@ class WebFormHelper extends BaseHelper {
         * yet opened. The field's name will be set as id.
         *
         * @param       $fieldName                      Input field name
-        * @param       $fieldSize                      Input size
-        * @param       $fieldMaxLength         Input max length
         * @param       $fieldValue                     Input default value (default: empty)
         * @return      void
         * @throws      FormClosedException             If the form is not yet opened
         */
-       public function addInputPasswordField ($fieldName, $fieldSize, $fieldMaxLength, $fieldValue = "") {
+       public function addInputPasswordField ($fieldName, $fieldValue = "") {
                // Is the form opened?
                if ($this->formOpened === false) {
                        // Throw an exception
@@ -201,8 +200,11 @@ class WebFormHelper extends BaseHelper {
                }
 
                // Generate the content
-               $inputContent = sprintf("<input type=\"password\" class=\"password\" id=\"%s\" name=\"%s\" size=\"%d\" maxlength=\"%d\" value=\"%s\" />",
-                       $fieldName, $fieldName, $fieldSize, $fieldMaxLength, $fieldValue);
+               $inputContent = sprintf("<input type=\"password\" class=\"password\" id=\"%s\" name=\"%s\" value=\"%s\" />",
+                       $fieldName,
+                       $fieldName,
+                       $fieldValue
+               );
 
                // And add it
                $this->addContent($inputContent);