

Definition at line 7 of file oxsimplevariant.php.
Public Member Functions | |
| __construct () | |
| __get ($sName) | |
| getSelectLists () | |
| getPrice () | |
| setPrice ($oPrice) | |
| getFPrice () | |
| setParent ($oParent) | |
| getParent () | |
| getLinkType () | |
| inCategory ($sCatNid) | |
| inPriceCategory ($sCatNid) | |
| getStdLink ($iLang=null, $aParams=array()) | |
| getLink ($iLang=null) | |
Protected Member Functions | |
| _applyCurrency (oxPrice $oPrice, $oCur=null) | |
| _applyParentDiscounts ($oPrice) | |
| _applyParentVat ($oPrice) | |
| _getParentPrice () | |
Protected Attributes | |
| $_blUseLazyLoading = true | |
| $_oPrice = null | |
| $_oParent = null | |
| $_sDetailLink = null | |
| $_sStdLink = null | |
| oxSimpleVariant.__construct | ( | ) |
| oxSimpleVariant.__get | ( | $ | sName | ) |
Magic getter, deals with deprecated values
| string | $sName Variable name |
Reimplemented from oxBase.
Definition at line 63 of file oxsimplevariant.php.
| oxSimpleVariant.getSelectLists | ( | ) |
Implementing (fakeing) performance friendly method from oxArticle oxbase
Definition at line 84 of file oxsimplevariant.php.
| oxSimpleVariant.getPrice | ( | ) |
Implementing (faking) performance friendly method from oxArticle
Definition at line 94 of file oxsimplevariant.php.
| oxSimpleVariant._applyCurrency | ( | oxPrice $ | oPrice, | |
| $ | oCur = null | |||
| ) | [protected] |
Applies currency factor
| oxPrice | $oPrice Price object | |
| object | $oCur Currency object |
Definition at line 124 of file oxsimplevariant.php.
| oxSimpleVariant._applyParentDiscounts | ( | $ | oPrice | ) | [protected] |
Applies discounts which should be applied in general case (for 0 amount)
| oxprice | $oPrice Price object |
Definition at line 140 of file oxsimplevariant.php.
| oxSimpleVariant._applyParentVat | ( | $ | oPrice | ) | [protected] |
apply parent article VAT to given price
| oxPrice | $oPrice price object |
Definition at line 158 of file oxsimplevariant.php.
| oxSimpleVariant.setPrice | ( | $ | oPrice | ) |
Price setter
| object | $oPrice price object |
Definition at line 175 of file oxsimplevariant.php.
| oxSimpleVariant.getFPrice | ( | ) |
| oxSimpleVariant.setParent | ( | $ | oParent | ) |
Sets parent article
| oxArticle | $oParent Parent article |
Definition at line 201 of file oxsimplevariant.php.
| oxSimpleVariant.getParent | ( | ) |
| oxSimpleVariant._getParentPrice | ( | ) | [protected] |
Returns parent price. Assuming variant parent has been assigned before function execution.
Definition at line 221 of file oxsimplevariant.php.
| oxSimpleVariant.getLinkType | ( | ) |
| oxSimpleVariant.inCategory | ( | $ | sCatNid | ) |
Checks if article is assigned to category
| string | $sCatNid category ID |
Definition at line 252 of file oxsimplevariant.php.
| oxSimpleVariant.inPriceCategory | ( | $ | sCatNid | ) |
Checks if article is assigned to price category $sCatNID
| string | $sCatNid Price category ID |
Definition at line 269 of file oxsimplevariant.php.
| oxSimpleVariant.getStdLink | ( | $ | iLang = null, |
|
| $ | aParams = array() | |||
| ) |
Gets article link
| int | $iLang required language [optional] | |
| array | $aParams additional params to use [optional] |
Implements oxIUrl.
Definition at line 287 of file oxsimplevariant.php.
| oxSimpleVariant.getLink | ( | $ | iLang = null |
) |
Gets article link
| int | $iLang required language. optional |
Implements oxIUrl.
Definition at line 306 of file oxsimplevariant.php.
oxSimpleVariant.$_blUseLazyLoading = true [protected] |
oxSimpleVariant.$_oPrice = null [protected] |
Definition at line 21 of file oxsimplevariant.php.
oxSimpleVariant.$_oParent = null [protected] |
Definition at line 28 of file oxsimplevariant.php.
oxSimpleVariant.$_sDetailLink = null [protected] |
Definition at line 35 of file oxsimplevariant.php.
oxSimpleVariant.$_sStdLink = null [protected] |
Definition at line 42 of file oxsimplevariant.php.
1.5.5