SetaPDF_Core_Writer_Var A writer class for a referenced variable

File: /SetaPDF v2/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 SetaPDF_Core_Writer_Var::__toString (
void
): string

__toString()-implementation.

cleanUp()

public SetaPDF_Core_Writer_Var::cleanUp (
void
): void

Unset the reference to the variable.

See

finish()

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

getPos()

public SetaPDF_Core_Writer_Var::getPos (
void
): integer

Returns the current position.

getStatus()

Get the current status of the writer object.

start()

public SetaPDF_Core_Writer_Var::start (
void
): void

Initiate the referenced variable.

See

write()

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

Adds content to the referenced variable.

Parameters
$s : string