Public Member Functions | |
| GenieGate_XMLWriter ($header=TRUE, $format=FALSE) | |
| Construct an XMLWriter. | |
| out ($raw) | |
| send XML out. | |
| escape ($string) | |
| Escapes text for output. | |
| text ($string) | |
| Send text to the output. | |
| start ($tag, $attr=array()) | |
| Start an element. | |
| atom ($tag, $attr=array()) | |
| Send a self closing element. | |
| close () | |
| closes the last opened element. | |
| finish () | |
| Closes all the open tags. | |
Public Attributes | |
| $FORMAT = FALSE | |
| If set to TRUE the output is tab indented. | |
This class does very little except keep track of the tag order and escape the XML text.
Definition at line 163 of file utils.php.
|
||||||||||||
|
Construct an XMLWriter.
Definition at line 178 of file utils.php. References out(). |
|
||||||||||||
|
Send a self closing element.
|
|
|
closes the last opened element. The last tag created with start() is closed. Definition at line 258 of file utils.php. References out(). Referenced by finish(). |
|
|
Escapes text for output. It just uses the htmlentities() function. (Over-ride if needed)
|
|
|
Closes all the open tags. It calls close() a number of times until all the opened elements are closed. |
|
|
send XML out. By default, it just echo's the XML to the current buffer. Override to send to a file handle, collection, etc..
Definition at line 191 of file utils.php. Referenced by atom(), close(), finish(), GenieGate_XMLWriter(), start(), and text(). |
|
||||||||||||
|
Start an element. The order of tags is tracked, so calling close() will close the first tag.
|
|
|
Send text to the output.
Definition at line 207 of file utils.php. References out(). |
Documentation generated by DoxyGen