OXID eShop CE  4.9.5
 All Classes Files Functions Variables Pages
InvoicepdfBlock Class Reference
+ Inheritance diagram for InvoicepdfBlock:

Public Member Functions

 run ($oPdf)
 line ($iLPos, $iLHeight, $iRPos, $iRHeight)
 text ($iLPos, $iLHeight, $sString)
 font ($sType, $sWeight, $sSize)
 ajustHeight ($iDelta)
 getFont ()

Protected Member Functions

 _toCache ($sFunc, $aParams)

Protected Attributes

 $_aCache = array()
 $_sFont = 'Arial'

Detailed Description

PDF renderer helper class, used to store data, sizes etc..

Definition at line 6 of file invoicepdfblock.php.

Member Function Documentation

InvoicepdfBlock::_toCache (   $sFunc,
  $aParams 
)
protected

Stores cacheable parameters.

Parameters
string$sFunccacheable function name
array$aParamscacheable parameters

Definition at line 29 of file invoicepdfblock.php.

InvoicepdfBlock::ajustHeight (   $iDelta)

Adjusts height after new page addition.

Parameters
int$iDeltanew height

Definition at line 108 of file invoicepdfblock.php.

InvoicepdfBlock::font (   $sType,
  $sWeight,
  $sSize 
)

Caches SetFont call with parameters.

Parameters
string$sTypefont type (Arial, Tahoma ...)
string$sWeightfont weight ('', 'B', 'U' ...)
string$sSizefont size ('10', '8', '6' ...)

Definition at line 98 of file invoicepdfblock.php.

InvoicepdfBlock::getFont ( )

Caches SetFont call with parameters.

Returns
string

Definition at line 128 of file invoicepdfblock.php.

InvoicepdfBlock::line (   $iLPos,
  $iLHeight,
  $iRPos,
  $iRHeight 
)

Caches Line call with parameters.

Parameters
int$iLPosleft position
int$iLHeightleft height
int$iRPosright position
int$iRHeightright height

Definition at line 74 of file invoicepdfblock.php.

InvoicepdfBlock::run (   $oPdf)

Runs and evaluates cached code.

Parameters
object$oPdfobject which methods will be executed

Definition at line 42 of file invoicepdfblock.php.

InvoicepdfBlock::text (   $iLPos,
  $iLHeight,
  $sString 
)

Caches Text call with parameters.

Parameters
int$iLPosleft position
int$iLHeightheight
string$sStringstring to write

Definition at line 86 of file invoicepdfblock.php.

Member Data Documentation

InvoicepdfBlock::$_aCache = array()
protected

Definition at line 14 of file invoicepdfblock.php.

InvoicepdfBlock::$_sFont = 'Arial'
protected

Definition at line 21 of file invoicepdfblock.php.


The documentation for this class was generated from the following file: