28 if (!defined(
'DATE_W3C')) {
29 define(
'DATE_W3C',
'Y-m-d\TH:i:sP');
32 if (!defined(
'DEBUGMODE_ENABLED')) {
33 define(
'DEBUGMODE_ENABLED',
false);
62 public function __construct($pTemporaryStorage = self::STORAGE_MEMORY, $pTemporaryStorageFolder =
'./') {
64 if ($pTemporaryStorage == self::STORAGE_MEMORY) {
68 $this->_tempFileName = @tempnam($pTemporaryStorageFolder,
'xml');
71 if ($this->openUri($this->_tempFileName) ===
false) {
78 if (DEBUGMODE_ENABLED) {
79 $this->setIndent(
true);
88 if ($this->_tempFileName !=
'') {
89 @unlink($this->_tempFileName);
99 if ($this->_tempFileName ==
'') {
100 return $this->outputMemory(
true);
103 return file_get_contents($this->_tempFileName);
115 if (method_exists($this,
'writeRaw')) {
116 return $this->writeRaw(htmlspecialchars($text));
119 return $this->text($text);