Documentation

XMLWriter
in package

XMLWriter

Table of Contents

Constants

STORAGE_DISK  : mixed = 2
STORAGE_MEMORY  : mixed = 1
Temporary storage method

Properties

$tempFileName  : string
Temporary filename
$xmlWriter  : XMLWriter
Internal XMLWriter

Methods

__call()  : mixed
Catch function calls (and pass them to internal XMLWriter)
__construct()  : mixed
Create a new \PhpOffice\PhpPowerpoint\Shared\XMLWriter instance
__destruct()  : mixed
Destructor
endElement()  : bool
flush()  : mixed
getData()  : string
Get written data
openMemory()  : bool
outputMemory()  : string
setIndent()  : bool
startDocument()  : bool
startElement()  : bool
text()  : bool
writeAttribute()  : bool
writeCData()  : bool
writeComment()  : bool
writeElement()  : bool
writeRaw()  : bool

Constants

STORAGE_MEMORY

Temporary storage method

public mixed STORAGE_MEMORY = 1

Properties

$tempFileName

Temporary filename

private string $tempFileName = ''

$xmlWriter

Internal XMLWriter

private XMLWriter $xmlWriter

Methods

__call()

Catch function calls (and pass them to internal XMLWriter)

public __call(string $function, array<string|int, mixed> $args) : mixed
Parameters
$function : string
$args : array<string|int, mixed>

__construct()

Create a new \PhpOffice\PhpPowerpoint\Shared\XMLWriter instance

public __construct([int $pTemporaryStorage = self::STORAGE_MEMORY ][, string $pTemporaryStorageDir = './' ]) : mixed
Parameters
$pTemporaryStorage : int = self::STORAGE_MEMORY

Temporary storage location

$pTemporaryStorageDir : string = './'

Temporary storage folder

__destruct()

Destructor

public __destruct() : mixed

endElement()

public endElement() : bool
Return values
bool

flush()

public flush([bool $empty = = 'null' ]) : mixed
Parameters
$empty : bool = = 'null'

getData()

Get written data

public getData() : string
Return values
string

openMemory()

public openMemory() : bool
Return values
bool

outputMemory()

public outputMemory([bool $flush = = 'null' ]) : string
Parameters
$flush : bool = = 'null'
Return values
string

setIndent()

public setIndent(bool $indent) : bool
Parameters
$indent : bool
Return values
bool

startDocument()

public startDocument([string $version = = '1.0' ][, string $encoding = = 'null' ][, string $standalone = = 'null' ]) : bool
Parameters
$version : string = = '1.0'
$encoding : string = = 'null'
$standalone : string = = 'null'
Return values
bool

startElement()

public startElement(string $name) : bool
Parameters
$name : string
Return values
bool

text()

public text(string $content) : bool
Parameters
$content : string
Return values
bool

writeAttribute()

public writeAttribute(string $name, mixed $value) : bool
Parameters
$name : string
$value : mixed
Return values
bool

writeCData()

public writeCData(string $content) : bool
Parameters
$content : string
Return values
bool

writeComment()

public writeComment(string $content) : bool
Parameters
$content : string
Return values
bool

writeElement()

public writeElement(string $name[, string $content = = 'null' ]) : bool
Parameters
$name : string
$content : string = = 'null'
Return values
bool

writeRaw()

public writeRaw(string $content) : bool
Parameters
$content : string
Return values
bool
On this page

Search results