Fix the constructor for Action
Also, fix the startXML() method
This commit is contained in:
parent
8028639073
commit
ff901332d2
@ -58,8 +58,21 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
{
|
{
|
||||||
var $args;
|
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
|
// For initializing members of the class
|
||||||
|
@ -122,7 +122,6 @@ class HTMLOutputter extends XMLOutputter
|
|||||||
'lang' => $language));
|
'lang' => $language));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ends an HTML document
|
* Ends an HTML document
|
||||||
*
|
*
|
||||||
@ -134,7 +133,6 @@ class HTMLOutputter extends XMLOutputter
|
|||||||
$this->endXML();
|
$this->endXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output an HTML text input element
|
* Output an HTML text input element
|
||||||
*
|
*
|
||||||
|
@ -72,7 +72,6 @@ class XMLOutputter
|
|||||||
$this->xw = new XMLWriter();
|
$this->xw = new XMLWriter();
|
||||||
$this->xw->openURI($output);
|
$this->xw->openURI($output);
|
||||||
$this->xw->setIndent($indent);
|
$this->xw->setIndent($indent);
|
||||||
$this->xw->startDocument('1.0', 'UTF-8');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,6 +86,7 @@ class XMLOutputter
|
|||||||
|
|
||||||
function startXML($doc=null, $public=null, $system=null)
|
function startXML($doc=null, $public=null, $system=null)
|
||||||
{
|
{
|
||||||
|
$this->xw->startDocument('1.0', 'UTF-8');
|
||||||
if ($doc) {
|
if ($doc) {
|
||||||
$this->xw->writeDTD($doc, $public, $system);
|
$this->xw->writeDTD($doc, $public, $system);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user