setasign\SetaPDF2\Core\Writer

ChainWriter A writer class which chains different writer objects

File: /SetaPDF v2/Core/Writer/ChainWriter.php
Old class name (alias): \SetaPDF_Core_Writer_Chain

Class hierarchy

Implements

Summary

Properties

$_status

protected string AbstractWriter::$_status = 0

Status property

$_writers

Writer instances


Methods

__construct()

The constructor.

Parameters
$writers : \SetaPDF_Core_Writer_WriterInterface[]

An array of writer instances

addWriter()

Add a writer object to the chain.

Parameters
$writer : \SetaPDF_Core_Writer_WriterInterface
 

cleanUp()

public ChainWriter::cleanUp (
void
): void

Forwards the cleanUp() call to the registered writer objects.

See

finish()

public ChainWriter::finish (
void
): void

Forward the finish() call to the registered writer objects.

getPos()

public ChainWriter::getPos (
void
): int

Proxy method for the getPos() method.

See

getStatus()

public AbstractWriter::getStatus (
void
): string

Get the current status of the writer object.

start()

public ChainWriter::start (
void
): void

Method which should/will be called when the writing process starts.

Exceptions

Throws Exception

write()

public ChainWriter::write (
string $s
): void

Forward the string to the registered writer objects.

Parameters
$s : string