Inheritance diagram for oxSimpleVariant:
 Collaboration diagram for oxSimpleVariant:Public Member Functions | |
| __construct () | |
| __get ($sName) | |
| assign ($aRecord) | |
| getSelectLists () | |
| getArticleUser () | |
| getPrice () | |
| setPrice ($oPrice) | |
| getFPrice () | |
| setParent ($oParent) | |
| getParent () | |
| getLinkType () | |
| inCategory ($sCatNid) | |
| inPriceCategory ($sCatNid) | |
| getBaseStdLink ($iLang, $blAddId=true, $blFull=true) | |
| getStdLink ($iLang=null, $aParams=array()) | |
| getBaseSeoLink ($iLang) | |
| getLink ($iLang=null) | |
Protected Member Functions | |
| _setLongDesc ($sDbValue) | |
| _getGroupPrice () | |
| _applyCurrency (oxPrice $oPrice, $oCur=null) | |
| _applyParentDiscounts ($oPrice) | |
| _applyParentVat ($oPrice) | |
Protected Attributes | |
| $_blUseLazyLoading = true | |
| $_oPrice = null | |
| $_oParent = null | |
| $_aStdUrls = array() | |
| $_aBaseStdUrls = array() | |
| $_aSeoUrls = array() | |
| $_oUser = null | |
Lightweight variant handler. Implemnets only absolutely needed oxArticle methods.
Definition at line 7 of file oxsimplevariant.php.
| oxSimpleVariant.__construct | ( | ) | 
Initializes instance
Definition at line 61 of file oxsimplevariant.php.
| oxSimpleVariant.__get | ( | $ | sName | ) | 
Magic getter, deals with deprecated values
| string | $sName Variable name | 
Definition at line 75 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 203 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 219 of file oxsimplevariant.php.
| oxSimpleVariant._applyParentVat | ( | $ | oPrice | ) |  [protected] | 
        
apply parent article VAT to given price
| oxPrice | $oPrice price object | 
Definition at line 233 of file oxsimplevariant.php.
| oxSimpleVariant._getGroupPrice | ( | ) |  [protected] | 
        
get user Group A, B or C price, returns db price if user is not in groups
Definition at line 150 of file oxsimplevariant.php.
| oxSimpleVariant._setLongDesc | ( | $ | sDbValue | ) |  [protected] | 
        
set given value to object's oxlongdesc - also prepare it (parse throug smarty) For simple variants to use less memory, this functionality is skipped - this function is empty. In order to have simplevariants with long descriptions, one should use a module, which overrides this method with long description setter.
| string | $sDbValue value to set | 
Definition at line 117 of file oxsimplevariant.php.
| oxSimpleVariant.assign | ( | $ | aRecord | ) | 
Assigns to oxarticle object some base parameters/values (such as detaillink, moredetaillink, etc).
| string | $aRecord Array representing current field values | 
Definition at line 98 of file oxsimplevariant.php.
| oxSimpleVariant.getArticleUser | ( | ) | 
| oxSimpleVariant.getBaseSeoLink | ( | $ | iLang | ) | 
Returns raw recommlist seo url
| int | $iLang language id | 
Definition at line 387 of file oxsimplevariant.php.
| oxSimpleVariant.getBaseStdLink | ( | $ | iLang, | |
| $ |  blAddId = true,  | 
        |||
| $ |  blFull = true | |||
| ) | 
Returns base dynamic url: shopurl/index.php?cl=details
| int | $iLang language id | |
| bool | $blAddId add current object id to url or not | |
| bool | $blFull return full including domain name [optional] | 
Implements oxIUrl.
Definition at line 343 of file oxsimplevariant.php.
| oxSimpleVariant.getFPrice | ( | ) | 
| oxSimpleVariant.getLink | ( | $ |  iLang = null | 
          ) | 
Gets article link
| int | $iLang required language id [optional] | 
Implements oxIUrl.
Definition at line 399 of file oxsimplevariant.php.
| oxSimpleVariant.getLinkType | ( | ) | 
| oxSimpleVariant.getParent | ( | ) | 
| oxSimpleVariant.getPrice | ( | ) | 
Implementing (faking) performance friendly method from oxArticle
Definition at line 176 of file oxsimplevariant.php.
| oxSimpleVariant.getSelectLists | ( | ) | 
Implementing (fakeing) performance friendly method from oxArticle oxbase
Definition at line 127 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 363 of file oxsimplevariant.php.
| oxSimpleVariant.inCategory | ( | $ | sCatNid | ) | 
Checks if article is assigned to category
| string | $sCatNid category ID | 
Definition at line 309 of file oxsimplevariant.php.
| oxSimpleVariant.inPriceCategory | ( | $ | sCatNid | ) | 
Checks if article is assigned to price category $sCatNID
| string | $sCatNid Price category ID | 
Definition at line 325 of file oxsimplevariant.php.
| oxSimpleVariant.setParent | ( | $ | oParent | ) | 
Sets parent article
| oxArticle | $oParent Parent article | 
Definition at line 273 of file oxsimplevariant.php.
| oxSimpleVariant.setPrice | ( | $ | oPrice | ) | 
Price setter
| object | $oPrice price object | 
Definition at line 247 of file oxsimplevariant.php.
oxSimpleVariant.$_aBaseStdUrls = array() [protected] | 
        
Definition at line 42 of file oxsimplevariant.php.
oxSimpleVariant.$_aSeoUrls = array() [protected] | 
        
Definition at line 49 of file oxsimplevariant.php.
oxSimpleVariant.$_aStdUrls = array() [protected] | 
        
Definition at line 35 of file oxsimplevariant.php.
oxSimpleVariant.$_blUseLazyLoading = true [protected] | 
        
Definition at line 14 of file oxsimplevariant.php.
oxSimpleVariant.$_oParent = null [protected] | 
        
Definition at line 28 of file oxsimplevariant.php.
oxSimpleVariant.$_oPrice = null [protected] | 
        
Definition at line 21 of file oxsimplevariant.php.
oxSimpleVariant.$_oUser = null [protected] | 
        
Definition at line 55 of file oxsimplevariant.php.
 1.7.1