added size parameter to htmlInputField

This commit is contained in:
Roland Gruber 2011-05-17 18:55:20 +00:00
parent e59023b1a9
commit 109397d1b2
1 changed files with 4 additions and 1 deletions

View File

@ -356,9 +356,12 @@ class htmlInputField extends htmlElement {
* @param String $fieldName unique field name
* @param String $fieldValue value of input field (optional)
*/
function __construct($fieldName, $fieldValue = null) {
function __construct($fieldName, $fieldValue = null, $fieldSize = null) {
$this->fieldName = htmlspecialchars($fieldName);
$this->fieldValue = htmlspecialchars($fieldValue);
if ($fieldSize != null) {
$this->fieldSize = $fieldSize;
}
}
/**