summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()