SetaPDF_Core_Writer_Chain A writer class which chains different writer objects

File: /SetaPDF v2/Core/Writer/Chain.php

Class hierarchy

Implements

Summary

Properties

$_status

Status property

$_writers


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 SetaPDF_Core_Writer_Chain::cleanUp (
void
): void

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

See

finish()

public SetaPDF_Core_Writer_Chain::finish (
void
): void

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

getPos()

public SetaPDF_Core_Writer_Chain::getPos (
void
): integer

Proxy method for the getPos() method.

See

getStatus()

Get the current status of the writer object.

start()

public SetaPDF_Core_Writer_Chain::start (
void
): void

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

Exceptions

Throws SetaPDF_Core_Writer_Exception

write()

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

Forward the string to the registered writer objects.

Parameters
$s : string