oxSimpleVariant Class Reference

Inheritance diagram for oxSimpleVariant:

Inheritance graph
[legend]
Collaboration diagram for oxSimpleVariant:

Collaboration graph
[legend]

List of all members.


Detailed Description

Lightweight variant handler. Implemnets only absolutely needed oxArticle methods.

Definition at line 7 of file oxsimplevariant.php.


Public Member Functions

 __construct ()
 getSelectLists ()
 getPrice ()
 setPrice ($oPrice)
 getFPrice ()
 setVat ($dVat)
 setParent ($oParent)
 getParent ()

Protected Member Functions

 _getParentPrice ()

Protected Attributes

 $_blUseLazyLoading = true
 $_dVat = null
 $_oPrice = null
 $_oParent = null

Constructor & Destructor Documentation

oxSimpleVariant.__construct (  ) 

Initializes instance

Reimplemented from oxI18n.

Definition at line 42 of file oxsimplevariant.php.


Member Function Documentation

oxSimpleVariant.getSelectLists (  ) 

Implementing (faking) performance friendly method from oxArticle oxbase

Returns:
null

Definition at line 55 of file oxsimplevariant.php.

oxSimpleVariant.getPrice (  ) 

Implementing (faking) performance friendly method from oxArticle

Returns:
oxPrice

Definition at line 65 of file oxsimplevariant.php.

oxSimpleVariant.setPrice ( oPrice  ) 

Price setter

Parameters:
object $oPrice
Returns:
null;

Definition at line 87 of file oxsimplevariant.php.

oxSimpleVariant.getFPrice (  ) 

Returns formated product price.

Returns:
double

Definition at line 97 of file oxsimplevariant.php.

oxSimpleVariant.setVat ( dVat  ) 

Sets variant VAT

Parameters:
double $dVat Custom VAT
Returns:
null

Definition at line 113 of file oxsimplevariant.php.

oxSimpleVariant.setParent ( oParent  ) 

Sets parent article

Parameters:
oxArticle $oParent Parent article
Returns:
null

Definition at line 125 of file oxsimplevariant.php.

oxSimpleVariant.getParent (  ) 

Parent article getter.

Returns:
oxArticle

Definition at line 135 of file oxsimplevariant.php.

oxSimpleVariant._getParentPrice (  )  [protected]

Returns parent price. Assuming variant parent has been assigned before function execution.

Returns:
double

Definition at line 145 of file oxsimplevariant.php.


Member Data Documentation

oxSimpleVariant.$_blUseLazyLoading = true [protected]

Reimplemented from oxBase.

Definition at line 15 of file oxsimplevariant.php.

oxSimpleVariant.$_dVat = null [protected]

Definition at line 22 of file oxsimplevariant.php.

oxSimpleVariant.$_oPrice = null [protected]

Definition at line 29 of file oxsimplevariant.php.

oxSimpleVariant.$_oParent = null [protected]

Definition at line 36 of file oxsimplevariant.php.


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

Generated on Wed Apr 22 12:32:42 2009 for OXID eShop CE by  doxygen 1.5.5