Flow PHP

XMLFileWriter implements FileWriter

FinalYes

Interfaces

FileWriter

Methods

__construct()  : mixed
close()  : void
Closes the root element the first write opened; a sink that wrote nothing appends nothing.
write()  : void

Methods

__construct()

public __construct(DestinationStream $stream, XMLEncoder $encoder, string $head, string $rootElementName) : mixed
Parameters
$stream : DestinationStream
$encoder : XMLEncoder
$head : string

the XML declaration and the opening root element, written before the first rows

$rootElementName : string

close()

Closes the root element the first write opened; a sink that wrote nothing appends nothing.

public close() : void

write()

public write(Rows $rows) : void
Parameters
$rows : Rows
On this page

Search results