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 ()
 __get ($sName)
 getSelectLists ()
 getPrice ()
 setPrice ($oPrice)
 getFPrice ()
 setParent ($oParent)
 getParent ()

Protected Member Functions

 _applyCurrency (oxPrice $oPrice, $oCur=null)
 _applyParentDiscounts ($oPrice)
 _applyParentVat ($oPrice)
 _getParentPrice ()

Protected Attributes

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

Constructor & Destructor Documentation

oxSimpleVariant.__construct (  ) 

Initializes instance

Reimplemented from oxI18n.

Definition at line 34 of file oxsimplevariant.php.


Member Function Documentation

oxSimpleVariant.__get ( sName  ) 

Magic getter, deals with deprecated values

Parameters:
string $sName Variable name
Returns:
mixed

Reimplemented from oxBase.

Definition at line 48 of file oxsimplevariant.php.

oxSimpleVariant.getSelectLists (  ) 

Implementing (fakeing) performance friendly method from oxArticle oxbase

Returns:
null

Definition at line 69 of file oxsimplevariant.php.

oxSimpleVariant.getPrice (  ) 

Implementing (faking) performance friendly method from oxArticle

Returns:
oxPrice

Definition at line 79 of file oxsimplevariant.php.

oxSimpleVariant._applyCurrency ( oxPrice oPrice,
oCur = null 
) [protected]

Applies currency factor

Parameters:
oxPrice $oPrice Price object
object $oCur Currency object
Returns:
null

Definition at line 109 of file oxsimplevariant.php.

oxSimpleVariant._applyParentDiscounts ( oPrice  )  [protected]

Applies discounts which should be applied in general case (for 0 amount)

Parameters:
oxprice $oPrice Price object
Returns:
null

Definition at line 125 of file oxsimplevariant.php.

oxSimpleVariant._applyParentVat ( oPrice  )  [protected]

apply parent article VAT to given price

Parameters:
oxPrice $oPrice price object
Returns:
null

Definition at line 143 of file oxsimplevariant.php.

oxSimpleVariant.setPrice ( oPrice  ) 

Price setter

Parameters:
object $oPrice price object
Returns:
null;

Definition at line 160 of file oxsimplevariant.php.

oxSimpleVariant.getFPrice (  ) 

Returns formated product price.

Returns:
double

Definition at line 170 of file oxsimplevariant.php.

oxSimpleVariant.setParent ( oParent  ) 

Sets parent article

Parameters:
oxArticle $oParent Parent article
Returns:
null

Definition at line 186 of file oxsimplevariant.php.

oxSimpleVariant.getParent (  ) 

Parent article getter.

Returns:
oxArticle

Definition at line 196 of file oxsimplevariant.php.

oxSimpleVariant._getParentPrice (  )  [protected]

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

Returns:
double

Definition at line 206 of file oxsimplevariant.php.


Member Data Documentation

oxSimpleVariant.$_blUseLazyLoading = true [protected]

Reimplemented from oxBase.

Definition at line 14 of file oxsimplevariant.php.

oxSimpleVariant.$_oPrice = null [protected]

Definition at line 21 of file oxsimplevariant.php.

oxSimpleVariant.$_oParent = null [protected]

Definition at line 28 of file oxsimplevariant.php.


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

Generated on Tue Sep 29 16:50:15 2009 for OXID eShop CE by  doxygen 1.5.5