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 = NULL) {
64 if ($pTemporaryStorage == self::STORAGE_MEMORY) {
68 if ($pTemporaryStorageFolder === NULL)
70 $this->_tempFileName = @tempnam($pTemporaryStorageFolder,
'xml');
73 if ($this->openUri($this->_tempFileName) ===
false) {
80 if (DEBUGMODE_ENABLED) {
81 $this->setIndent(
true);
90 if ($this->_tempFileName !=
'') {
91 @unlink($this->_tempFileName);
101 if ($this->_tempFileName ==
'') {
102 return $this->outputMemory(
true);
105 return file_get_contents($this->_tempFileName);
117 if (is_array(
$text)) {
121 if (method_exists($this,
'writeRaw')) {
122 return $this->writeRaw(htmlspecialchars(
$text));
125 return $this->text(
$text);
getData()
Get written data.
writeRawData($text)
Fallback method for writeRaw, introduced in PHP 5.2.
static sys_get_temp_dir()
Get the systems temporary directory.
__construct($pTemporaryStorage=self::STORAGE_MEMORY, $pTemporaryStorageFolder=NULL)
Create a new PHPExcel_Shared_XMLWriter instance.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
const STORAGE_MEMORY
Temporary storage method.