+++ /dev/null
-<?php\r
-// \r
-/**\r
- * What is like to be an XML Tag? \r
- */\r
-\r
-class XmlTagCollection\r
-{\r
- private $xmlTagCollection = array(); // a collection of XML tag objects\r
- \r
- public function addXmlTagObject($theXmlTagObject)\r
- {\r
- $this->xmlTagCollection[] = $theXmlTagObject;\r
- }\r
- \r
- public function getXmlTagCollection()\r
- {\r
- //echo '<br><br>XmlTagCollection Class -> getXmlTagCollection()<br>Tot in XmlTagCollection: '.count($this->xmlTagCollection);\r
- return $this->xmlTagCollection;\r
- }\r
- \r
- /**\r
- * Print all values of the XML tag object \r
- */ \r
- public function toString()\r
- {\r
- echo "<br><br>Total <b>".$this->xmlTagCollection."</b> Tags = ".count($this->xmlTagCollection)."";\r
- \r
- // Display all tag attributes in the tag\r
- foreach ($this->xmlTagCollection as $xmlTagObject)\r
- {\r
- $xmlTagObject->toString();\r
- } // foreach end\r
- \r
- }// toString() end \r
- \r
-} // end class XmlTagCollection\r
-?>
\ No newline at end of file