Also, fix the startXML() method
{
var $args;
- function Action()
- {
+ /**
+ * Constructor
+ *
+ * Just wraps the HTMLOutputter constructor.
+ *
+ * @param string $output URI to output to, default = stdout
+ * @param boolean $indent Whether to indent output, default true
+ *
+ * @see XMLOutputter::__construct
+ * @see HTMLOutputter::__construct
+ */
+
+ function __construct($output='php://output', $indent=true)
+ {
+ parent::__construct($output, $indent);
}
// For initializing members of the class
'lang' => $language));
}
-
/**
* Ends an HTML document
*
$this->endXML();
}
-
/**
* Output an HTML text input element
*
$this->xw = new XMLWriter();
$this->xw->openURI($output);
$this->xw->setIndent($indent);
- $this->xw->startDocument('1.0', 'UTF-8');
}
/**
function startXML($doc=null, $public=null, $system=null)
{
+ $this->xw->startDocument('1.0', 'UTF-8');
if ($doc) {
$this->xw->writeDTD($doc, $public, $system);
}