Example #1
0
 /**
  * Export to DB
  * Imports XML to a database table per configuration file
  * $type defines function to get XML
  */
 function exporttoDB($type = NULL)
 {
     if ($type == "dependent") {
         $xml = $this->outputDependentXML();
     } else {
         $xml = $this->outputXML();
     }
     if (array_key_exists("database", $this->configarray)) {
         $db = new Database();
         $db->importXML($xml);
     } else {
         return "No database configuration given. Check config XML.";
     }
 }