SetaPDF_Core_Writer_HttpStream A writer class for immediately HTTP delivery without sending a Length header

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

Class hierarchy

Implements

Summary

Properties

$_filename

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

The document filename

$_inline

protected boolean SetaPDF_Core_Writer_HttpStream::$_inline = false

Flag saying that the file should be displayed inline or not

$_pos

protected integer SetaPDF_Core_Writer_HttpStream::$_pos = 0

The current position

$_status

Status property


Methods

__construct()

public SetaPDF_Core_Writer_HttpStream::__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

cleanUp()

public void SetaPDF_Core_Writer_AbstractWriter::cleanUp ( void )

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

finish()

public void SetaPDF_Core_Writer_AbstractWriter::finish ( void )

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

getPos()

public integer SetaPDF_Core_Writer_Echo::getPos ( void )

Returns the current position.

getStatus()

public string SetaPDF_Core_Writer_AbstractWriter::getStatus ( void )

Get the current status of the writer object.

start()

public void SetaPDF_Core_Writer_HttpStream::start ( void )

This method is called when the writing process is started.

It sends the HTTP headers.

write()

public void SetaPDF_Core_Writer_Echo::write ( string $s )

Echo the string.

Parameters
$s : string