diff options
author | sarven <csarven@plantard.controlezvous.ca> | 2009-01-15 19:26:07 +0000 |
---|---|---|
committer | sarven <csarven@plantard.controlezvous.ca> | 2009-01-15 19:26:07 +0000 |
commit | 6b42b2a09c2031a0e3ac589589cbd1e2f545ac4c (patch) | |
tree | 4cf84fb42c2bc4b869f2e06c41ff49d0c2e171ca | |
parent | 4a2aebe5cfab4a4b0388f98b296eac66be6e3396 (diff) | |
parent | f0b4e7094c509bf5830586e3e05382e754adf3db (diff) |
Merge branch 'uiredesign' of ../evan into uiredesign
-rw-r--r-- | lib/action.php | 19 | ||||
-rw-r--r-- | lib/htmloutputter.php | 2 | ||||
-rw-r--r-- | lib/xmloutputter.php | 2 |
3 files changed, 17 insertions, 6 deletions
diff --git a/lib/action.php b/lib/action.php index 8694bf47c..30a3c8a03 100644 --- a/lib/action.php +++ b/lib/action.php @@ -58,8 +58,21 @@ class Action extends HTMLOutputter // lawsuit { 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 @@ -81,7 +94,7 @@ class Action extends HTMLOutputter // lawsuit function showHead() { // XXX: attributes (profile?) - $this->startElement('head'); + $this->elementStart('head'); $this->showTitle(); $this->showStylesheets(); $this->showScripts(); @@ -89,7 +102,7 @@ class Action extends HTMLOutputter // lawsuit $this->showFeeds(); $this->showDescription(); $this->extraHead(); - $this->elementElement('head'); + $this->elementEnd('head'); } function showTitle() diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 43e4a59a9..75a995bef 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -122,7 +122,6 @@ class HTMLOutputter extends XMLOutputter 'lang' => $language)); } - /** * Ends an HTML document * @@ -134,7 +133,6 @@ class HTMLOutputter extends XMLOutputter $this->endXML(); } - /** * Output an HTML text input element * diff --git a/lib/xmloutputter.php b/lib/xmloutputter.php index 9ca0c91bd..64935da40 100644 --- a/lib/xmloutputter.php +++ b/lib/xmloutputter.php @@ -72,7 +72,6 @@ class XMLOutputter $this->xw = new XMLWriter(); $this->xw->openURI($output); $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) { + $this->xw->startDocument('1.0', 'UTF-8'); if ($doc) { $this->xw->writeDTD($doc, $public, $system); } |