From 109397d1b22fe1418e6af83be7f6cb19554fbfaa Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 17 May 2011 18:55:20 +0000 Subject: [PATCH] added size parameter to htmlInputField --- lam/lib/html.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 7cf2ddfe..88925512 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -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; + } } /**