* 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
}
// 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);
* 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
}
// 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);