* @license http://www.opensource.org/licenses/bsd-license.php BSD * @version CVS: $Id: pci180_parsedir_tohtml.php,v 1.2 2008/07/22 20:26:45 farell Exp $ * @link http://pear.php.net/package/PHP_CompatInfo * @since version 1.8.0b4 (2008-06-18) * @ignore */ require_once 'PHP/CompatInfo.php'; require_once 'PHP/CompatInfo/Renderer.php'; require_once 'PHP/CompatInfo/Renderer/Html.php'; /** * Custom html layout * * @ignore */ class PHP_CompatInfo_Renderer_Html2 extends PHP_CompatInfo_Renderer_Html { /** * Html2 Renderer Class constructor * * @param object &$parser Instance of the parser (model of MVC pattern) * @param array $conf A hash containing any additional configuration * * @access public * @since version 1.8.0b4 (2008-06-18) */ function PHP_CompatInfo_Renderer_Html2(&$parser, $conf) { parent::__construct($parser, $conf); // use default stylesheet (pci.css) $this->setStyleSheet(); // Important: do not remove it } /** * Returns HTML code of parsing result * * @param object $obj instance of HTML_Table * * @access public * @return string */ function toHtml($obj) { $styles = $this->getStyleSheet(3, array(&$this, '_getStyles')); $body = $obj->toHtml(); $html = <<