OXID eShop CE  4.8.11
 All Classes Files Functions Variables Pages
MyOrder Class Reference
+ Inheritance diagram for MyOrder:
+ Collaboration diagram for MyOrder:

Public Member Functions

 setSelectedLang ($iLang)
 translate ($sString)
 pdfFooter ($oPdf)
 pdfHeaderPlus ($oPdf)
 pdfHeader ($oPdf)
 genPdf ($sFilename, $iSelLang=0)
 exportStandart ($oPdf)
 exportDeliveryNote ($oPdf)
 getVats ()
 getCurrency ()
 getSelectedLang ()
 getPaymentTerm ()

Protected Member Functions

 _getActShop ()
 _setBillingAddressToPdf ($oPdf)
 _setDeliveryAddressToPdf ($oPdf)
 _setOrderArticlesToPdf ($oPdf, &$iStartPos, $blShowPrice=true)
 _replaceExtendedChars ($sValue, $blReverse=false)

Protected Attributes

 $_iSelectedLang = 0
 $_oActShop = null
 $_aVATs = array()
 $_oCur = null

Detailed Description

Order pdf generator class

Definition at line 665 of file myorder.php.

Member Function Documentation

MyOrder::_getActShop ( )
protected

Returns active shop object

Returns
oxshop $oUser

Definition at line 708 of file myorder.php.

MyOrder::_replaceExtendedChars (   $sValue,
  $blReverse = false 
)
protected

Replaces some special characters to HTML compatible symbol codes. SWITCHED OFF NOW ( 2.2 )

Parameters
string$sValueinitial value
bool$blReverse(default false) if false - checks if we do have already htmlentities inside
Returns
string

Definition at line 1253 of file myorder.php.

MyOrder::_setBillingAddressToPdf (   $oPdf)
protected

Set billing address info to pdf

Parameters
object$oPdfpdf document object
Returns
null

Definition at line 883 of file myorder.php.

MyOrder::_setDeliveryAddressToPdf (   $oPdf)
protected

Set delivery address info to pdf

Parameters
object$oPdfpdf document object
Returns
null

Definition at line 910 of file myorder.php.

MyOrder::_setOrderArticlesToPdf (   $oPdf,
$iStartPos,
  $blShowPrice = true 
)
protected

Set order articles info and articles VAT's to pdf

Parameters
object$oPdfpdf document object
int&$iStartPostext start position from top
bool$blShowPriceshow articles prices / VAT info or not
Returns
null

Definition at line 941 of file myorder.php.

MyOrder::exportDeliveryNote (   $oPdf)

Generating delivery note pdf

Parameters
object$oPdfpdf document object
Returns
null

Definition at line 1133 of file myorder.php.

MyOrder::exportStandart (   $oPdf)

Exporting standard invoice pdf

Parameters
object$oPdfpdf document object
Returns
null

Definition at line 1008 of file myorder.php.

MyOrder::genPdf (   $sFilename,
  $iSelLang = 0 
)

Generates order pdf report file

Parameters
string$sFilenamename of report file
int$iSelLangactive language
Returns
null

Definition at line 830 of file myorder.php.

MyOrder::getCurrency ( )

Returns order currency object

Returns
object

Definition at line 1297 of file myorder.php.

MyOrder::getPaymentTerm ( )

Method returns config param iPaymentTerm, default value is 7;

Returns
int

Definition at line 1317 of file myorder.php.

MyOrder::getSelectedLang ( )

Returns order currency object

Returns
object

Definition at line 1307 of file myorder.php.

MyOrder::getVats ( )

Returns order articles VATS's

Returns
array

Definition at line 1286 of file myorder.php.

MyOrder::pdfFooter (   $oPdf)

Formats pdf page footer

Parameters
object$oPdfpdf document object
Returns
null

Definition at line 739 of file myorder.php.

MyOrder::pdfHeader (   $oPdf)

Creating new page with shop logo. Returning position to continue data writing

Parameters
object$oPdfpdf document object
Returns
int

Definition at line 805 of file myorder.php.

MyOrder::pdfHeaderPlus (   $oPdf)

Adds shop logo to page header. Returns position for next texts in pdf

Parameters
object$oPdfpdf document object
Returns
int

Definition at line 776 of file myorder.php.

MyOrder::setSelectedLang (   $iLang)

Set language for pdf generation

Parameters
$iLang

Definition at line 698 of file myorder.php.

MyOrder::translate (   $sString)

Returns translated string

Parameters
string$sStringstring to translate
Returns
string

Definition at line 727 of file myorder.php.

Member Data Documentation

MyOrder::$_aVATs = array()
protected

Definition at line 684 of file myorder.php.

MyOrder::$_iSelectedLang = 0
protected

Definition at line 672 of file myorder.php.

MyOrder::$_oActShop = null
protected

Definition at line 678 of file myorder.php.

MyOrder::$_oCur = null
protected

Definition at line 690 of file myorder.php.


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