summaryrefslogtreecommitdiff
path: root/framework/Xml/TXmlDocument.php
diff options
context:
space:
mode:
authorxue <>2006-04-03 18:29:25 +0000
committerxue <>2006-04-03 18:29:25 +0000
commitb3e1b298e6fa8e327516d54d62856599faf443d2 (patch)
treec9c700a22c78e3bbe55a8c860f4c1d7f575e4a11 /framework/Xml/TXmlDocument.php
parent5bdb9190257a95efc810668d96d565c4aa05c48d (diff)
Added setAttribute().
Diffstat (limited to 'framework/Xml/TXmlDocument.php')
-rw-r--r--framework/Xml/TXmlDocument.php9
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()