Source for file ProductFinder.php
Documentation is available at ProductFinder.php
* Model for a product finder
* @author Stephan Schmidt <schst@php.net>
* stores the DOM document
$this->dom = new DOMDocument ();
$ebay = new DOMElement ('eBay');
$ebay = $this->dom->appendChild ($ebay);
$pf = new DOMElement ('ProductFinders');
$pf = $ebay->appendChild ($pf);
$newNode = $this->dom->importNode ($node, true );
$pf->appendChild ($newNode);
* render the product finder using an XSL stylesheet
* @param string xsl stylesheet
* @return string result of the transformation
public function render($xsl = null )
$xsl = DomDocument ::loadXML ($xsl);
$proc = new xsltprocessor;
$proc->importStyleSheet ($xsl);
return $proc->transformToXML ($this->dom);
Documentation generated on Mon, 11 Mar 2019 15:49:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|