public function lCV3($id = -1, $returnCollector = true) { if ($this->Adapter == null) { $this->loadAdapter(); } if ($this->xml == null and $this->collection != null) { if (is_object($this->collection)) { $this->collection->lCV3(); $XML = new XML(); $XML->setCollection($this->collection); $this->xml = $XML->getXML(); } elseif (is_string($this->collection)) { $handle = @fopen($this->collection, "r"); if ($handle) { while (!feof($handle)) { $this->xml .= fgets($handle, 4096); } fclose($handle); } else { die('error'); } } } $this->Adapter->setXML($this->xml); if ($returnCollector) { $this->collector = $this->Adapter->lCV4(); } else { return $this->Adapter->lCV4(); } }
public function getXML() { #$this->addAssocV3("PatchNummer","<", "1000000"); $this->lCV3(); $XML = new XML(); $XML->setCollection($this); $XML->setXMLHeader(); echo $XML->getXML(); }
public function asXML() { $xml = new XML(); $xml->setCollection($this); return $xml->getXML(); }