From b3e1b298e6fa8e327516d54d62856599faf443d2 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 3 Apr 2006 18:29:25 +0000 Subject: Added setAttribute(). --- framework/Xml/TXmlDocument.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework') 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 @@ -133,6 +133,15 @@ class TXmlElement extends TComponent return null; } + /** + * @param string attribute name + * @param string attribute value + */ + public function setAttribute($name,$value) + { + $this->getAttributes()->add($name,$value); + } + /** * @return TXmlElementList list of child elements */ -- cgit v1.2.3