Documentation

XMLWriter extends XMLWriter
in package

Table of Contents

Constants

STORAGE_DISK  = 2
STORAGE_MEMORY  = 1
Temporary storage method

Properties

$debugEnabled  : bool

Methods

__construct()  : mixed
Create a new XMLWriter instance.
__destruct()  : mixed
Destructor.
__unserialize()  : void
Unserialization is not allowed. This needs to be enforced in the class before Php8.6, but, with that release, this method is no longer needed and will not be executed.
getData()  : string
Get written data.
writeRawData()  : bool
Wrapper method for writeRaw.

Constants

STORAGE_MEMORY

Temporary storage method

public mixed STORAGE_MEMORY = 1

Properties

$debugEnabled

public static bool $debugEnabled = false

Methods

__construct()

Create a new XMLWriter instance.

public __construct([int $temporaryStorage = self::STORAGE_MEMORY ][, string|null $temporaryStorageFolder = null ]) : mixed
Parameters
$temporaryStorage : int = self::STORAGE_MEMORY

Temporary storage location

$temporaryStorageFolder : string|null = null

Temporary storage folder

__destruct()

Destructor.

public __destruct() : mixed

__unserialize()

Unserialization is not allowed. This needs to be enforced in the class before Php8.6, but, with that release, this method is no longer needed and will not be executed.

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Tags
see
https://github.com/php/php-src/pull/21694

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>
Return values
bool

        
On this page

Search results