diff options
author | xue <> | 2007-03-09 21:49:48 +0000 |
---|---|---|
committer | xue <> | 2007-03-09 21:49:48 +0000 |
commit | 1d2af84bffb5703a9bbd6bc5b07f983f22f3c369 (patch) | |
tree | 48877fb8fc7a6827ed6c65f9c975803240830430 /framework/Web/UI/WebControls/THiddenField.php | |
parent | 8375e06bc985d25d6dadf146111fe8eaf40e8a26 (diff) |
merge from 3.0 branch till 1755.
Diffstat (limited to 'framework/Web/UI/WebControls/THiddenField.php')
-rw-r--r-- | framework/Web/UI/WebControls/THiddenField.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/THiddenField.php b/framework/Web/UI/WebControls/THiddenField.php index 8a8a0c8a..acead9f0 100644 --- a/framework/Web/UI/WebControls/THiddenField.php +++ b/framework/Web/UI/WebControls/THiddenField.php @@ -59,6 +59,13 @@ class THiddenField extends TControl implements IPostBackDataHandler, IValidatabl $writer->addAttribute('id',$this->getClientID());
if(($value=$this->getValue())!=='')
$writer->addAttribute('value',$value);
+
+ if($this->getHasAttributes())
+ {
+ foreach($this->getAttributes() as $name=>$value)
+ $writer->addAttribute($name,$value);
+ }
+
$writer->renderBeginTag('input');
$writer->renderEndTag();
}
|