SetaPDF_Core_Writer_Chain A writer class which chains different writer objects

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

Class hierarchy

Implements

Summary

Properties

$_status

protected string SetaPDF_Core_Writer_Chain::$_status = 0

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

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

See

finish()

public void SetaPDF_Core_Writer_Chain::finish ( void )

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

getPos()

public void SetaPDF_Core_Writer_Chain::getPos ( void )

Proxy method for the getPos() method.

See

getStatus()

Get the current status of the writer object.

start()

public void SetaPDF_Core_Writer_Chain::start ( void )

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

Exceptions

Throws SetaPDF_Core_Writer_Exception

write()

public void SetaPDF_Core_Writer_Chain::write ( string $s )

Forward the string to the registered writer objects.

Parameters
$s : string