SetaPDF_Core_Writer_Var A writer class for a referenced variable

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

Class hierarchy

Implements

Summary

Properties

$_pos

protected integer SetaPDF_Core_Writer_Var::$_pos = 0

The current position

$_status

protected string SetaPDF_Core_Writer_Var::$_status = 0

Status property

$_var

protected string SetaPDF_Core_Writer_Var::$_var

The variable reference


Methods

__construct()

public SetaPDF_Core_Writer_Var::__construct ( string &$var )

The constructor.

Parameters
$var : string

A reference to the variable to write to

__toString()

public string SetaPDF_Core_Writer_Var::__toString ( void )

__toString()-implementation.

cleanUp()

public void SetaPDF_Core_Writer_Var::cleanUp ( void )

Unset the reference to the variable.

See

finish()

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

getPos()

public integer SetaPDF_Core_Writer_Var::getPos ( void )

Returns the current position.

getStatus()

Get the current status of the writer object.

start()

public void SetaPDF_Core_Writer_Var::start ( void )

Initiate the referenced variable.

See

write()

public void SetaPDF_Core_Writer_Var::write ( string $s )

Adds content to the referenced variable.

Parameters
$s : string