XMLWriter extends XMLWriter
Table of Contents
- STORAGE_DISK = 2
- STORAGE_MEMORY = 1
- Temporary storage method
- $debugEnabled : bool
- $tempFileName : string
- Temporary filename.
- __construct() : mixed
- Create a new XMLWriter instance.
- __destruct() : mixed
- Destructor.
- __wakeup() : void
- getData() : string
- Get written data.
- writeRawData() : bool
- Wrapper method for writeRaw.
Constants
STORAGE_DISK
public
mixed
STORAGE_DISK
= 2
STORAGE_MEMORY
Temporary storage method
public
mixed
STORAGE_MEMORY
= 1
Properties
$debugEnabled
public
static bool
$debugEnabled
= false
$tempFileName
Temporary filename.
private
string
$tempFileName
= ''
Methods
__construct()
Create a new XMLWriter instance.
public
__construct([int $temporaryStorage = self::STORAGE_MEMORY ][, string $temporaryStorageFolder = null ]) : mixed
Parameters
- $temporaryStorage : int = self::STORAGE_MEMORY
-
Temporary storage location
- $temporaryStorageFolder : string = null
-
Temporary storage folder
Return values
mixed —__destruct()
Destructor.
public
__destruct() : mixed
Return values
mixed —__wakeup()
public
__wakeup() : void
Return values
void —getData()
Get written data.
public
getData() : string
Return values
string —writeRawData()
Wrapper method for writeRaw.
public
writeRawData(null|string|array<string|int, string> $rawTextData) : bool
Parameters
- $rawTextData : null|string|array<string|int, string>