diff options
author | xue <> | 2007-03-07 13:29:12 +0000 |
---|---|---|
committer | xue <> | 2007-03-07 13:29:12 +0000 |
commit | 509d77129bf00b962c8b013963c9f2115383f2f9 (patch) | |
tree | a1550210ede31275b349b178be8963c0aff66f04 /framework | |
parent | db15e78676c4bdd76c1f6ff32782c07ff0570029 (diff) |
Added custom attribute rendering for THiddenField.
Diffstat (limited to 'framework')
-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 f9fdd3b0..bef79133 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();
}
|