SetaPDF_Core_Writer_Http A writer class for HTTP delivery

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

Class hierarchy

Implements

Summary

Properties

$_buffer

protected string SetaPDF_Core_Writer_Http::$_buffer = ''

The string buffer

$_filename

protected string SetaPDF_Core_Writer_Http::$_filename = 'document.pdf'

The document filename

$_inline

protected boolean SetaPDF_Core_Writer_Http::$_inline = false

Flag saying that the file should be displayed inline or not

$_pos

protected integer SetaPDF_Core_Writer_Http::$_pos = 0

The current position

$_status

protected string SetaPDF_Core_Writer_Http::$_status = 0

Status property


Methods

__construct()

public SetaPDF_Core_Writer_Http::__construct ( [ string $filename = 'document.pdf' [, boolean $inline = false ]] )

The constructor.

Parameters
$filename : string

The path to which the writer should write to

$inline : boolean

Defines if the document should be displayed inline or if a download should be forced

__toString()

public string SetaPDF_Core_Writer_String::__toString ( void )

__toString()-implementation.

cleanUp()

Method which should/will be called when the document objects cleanUp() method is called.

finish()

public void SetaPDF_Core_Writer_Http::finish ( void )

This method is called when the writing process is finished.

It sends the HTTP headers and send the buffer to the client.

Exceptions

Throws SetaPDF_Core_Writer_Exception

getBuffer()

public string SetaPDF_Core_Writer_String::getBuffer ( void )

Get the string buffer.

getPos()

public integer SetaPDF_Core_Writer_Echo::getPos ( void )

Returns the current position.

getStatus()

Get the current status of the writer object.

start()

public void SetaPDF_Core_Writer_String::start ( void )

Initiate the buffer property.

write()

public void SetaPDF_Core_Writer_String::write ( string $s )

Add content to the buffer.

Parameters
$s : string