/** * call the parent constructor and check for needed extensions */ public function __construct() { CommonFunctions::checkForSVN(); CommonFunctions::checkForExtensions(); $this->error = Error::singleton(); $this->_checkConfig(); }
/** * generate the static page * * @return void */ public function run() { CommonFunctions::checkForSVN(); CommonFunctions::checkForExtensions(array('xsl')); $xmlfile = $this->getXMLString(); $xslfile = "phpsysinfo.xslt"; $domxml = new DOMDocument(); $domxml->loadXML($xmlfile); $domxsl = new DOMDocument(); $domxsl->load($xslfile); $xsltproc = new XSLTProcessor(); $xsltproc->importStyleSheet($domxsl); echo $xsltproc->transformToXML($domxml); }