diff options
author | xue <> | 2006-04-03 18:29:25 +0000 |
---|---|---|
committer | xue <> | 2006-04-03 18:29:25 +0000 |
commit | b3e1b298e6fa8e327516d54d62856599faf443d2 (patch) | |
tree | c9c700a22c78e3bbe55a8c860f4c1d7f575e4a11 /framework/Xml | |
parent | 5bdb9190257a95efc810668d96d565c4aa05c48d (diff) |
Added setAttribute().
Diffstat (limited to 'framework/Xml')
-rw-r--r-- | framework/Xml/TXmlDocument.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php index fb73a9f5..a69d982d 100644 --- a/framework/Xml/TXmlDocument.php +++ b/framework/Xml/TXmlDocument.php @@ -134,6 +134,15 @@ class TXmlElement extends TComponent } /** + * @param string attribute name + * @param string attribute value + */ + public function setAttribute($name,$value) + { + $this->getAttributes()->add($name,$value); + } + + /** * @return TXmlElementList list of child elements */ public function getElements() |