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

Public Member Functions

 __construct ()
 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)
- Public Member Functions inherited from oxI18n
 setLanguage ($iLang=null)
 getLanguage ()
 setEnableMultilang ($blEmployMultilanguage)
 isMultilingualField ($sFieldName)
 isMultilang ()
 loadInLang ($iLanguage, $sOxid)
 modifyCacheKey ($sCacheKey, $blOverride=false)
 getAvailableInLangs ()
 getUpdateSqlFieldName ($sField)
 delete ($sOXID=null)
- Public Member Functions inherited from oxBase
 getUseSkipSaveFields ()
 setUseSkipSaveFields ($blUseSkipSaveFields)
 __set ($sName, $sValue)
 __get ($sName)
 __isset ($mVar)
 __clone ()
 oxClone ($oObject)
 getUpdateSeo ()
 setUpdateSeo ($blUpdateSeo)
 init ($sTableName=null, $blForceAllFields=false)
 getClassName ()
 getCoreTableName ()
 getId ()
 setId ($sOXID=null)
 setShopId ($iShopId)
 getShopId ()
 getViewName ($blForceCoreTableUsage=null)
 disableLazyLoading ()
 isDerived ()
 setIsDerived ($blVal)
 load ($sOXID)
 isLoaded ()
 buildSelectString ($aWhere=null)
 assignRecord ($sSelect)
 getFieldData ($sFieldName)
 getSelectFields ($blForceCoreTableUsage=null)
 save ()
 allowDerivedUpdate ()
 allowDerivedDelete ()
 exists ($sOXID=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 beforeUpdate ($sOXID=null)
 onChange ($iAction=null, $sOXID=null)
 setInList ()
 isOx ()
 isReadOnly ()
 setReadOnly ($blReadOnly)
 getFieldNames ()
 addFieldName ($sName)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getGroupPrice ()
 _applyCurrency (oxPrice $oPrice, $oCur=null)
 _applyParentDiscounts ($oPrice)
 _applyParentVat ($oPrice)
- Protected Member Functions inherited from oxI18n
 _getFieldStatus ($sFieldName)
 _getNonCachedFieldNames ($blForceFullStructure=false)
 _getFieldLang ($sFieldName)
 _setUpdateSeoOnFieldChange ($sField)
 _getUpdateFieldsForTable ($sTable, $blUseSkipSaveFields=true)
 _getUpdateFields ($blUseSkipSaveFields=true)
 _update ()
 _getLanguageSetTables ($sCoreTableName=null)
 _insert ()
 _getObjectViewName ($sTable, $sShopID=null)
 _getAllFields ($blReturnSimple=false)
 _addField ($sName, $sStatus, $sType=null, $sLength=null)
 _canFieldBeNull ($sFieldName)
- Protected Member Functions inherited from oxBase
 _removeElement2ShopRelations ($sOxId)
 _isInList ()
 _getTableFields ($sTable, $blReturnSimple=false)
 _initDataStructure ($blForceFullStructure=false)
 _getFieldLongName ($sFieldName)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)
 _getFieldDefaultValue ($sFieldName)
 _getUpdateFieldValue ($sFieldName, $oField)
 _isDisabledFieldCache ()
 _addSkippedSaveFieldsForMapping ()
 _disableLazyLoadingForCaching ()

Protected Attributes

 $_blUseLazyLoading = true
 $_oPrice = null
 $_oParent = null
 $_aStdUrls = array()
 $_aBaseStdUrls = array()
 $_aSeoUrls = array()
 $_oUser = null
- Protected Attributes inherited from oxI18n
 $_sClassName = 'oxI18n'
 $_iLanguage = null
 $_blEmployMultilanguage = true
- Protected Attributes inherited from oxBase
 $_sOXID = null
 $_iShopId = null
 $_blIsSimplyClonable = true
 $_sClassName = 'oxbase'
 $_sCoreTable = null
 $_sViewTable = null
 $_aFieldNames = array('oxid' => 0)
 $_sCacheKey = null
 $_blUseLazyLoading = false
 $_aSkipSaveFields = array('oxtimestamp')
 $_blUseSkipSaveFields = true
 $_sExistKey = 'oxid'
 $_blIsDerived = null
 $_blIsSeoObject = false
 $_blUpdateSeo = true
 $_blReadOnly = false
 $_blIsInList = false
 $_isLoaded = false
 $_aInnerLazyCache = null
 $_blEmployMultilanguage = false

Additional Inherited Members

- Static Protected Attributes inherited from oxBase
static $_blDisableFieldCaching = array()

Detailed Description

Lightweight variant handler. Implemnets only absolutely needed oxArticle methods.

Definition at line 7 of file oxsimplevariant.php.

Constructor & Destructor Documentation

oxSimpleVariant::__construct ( )

Initializes instance

Reimplemented from oxI18n.

Definition at line 63 of file oxsimplevariant.php.

Member Function Documentation

oxSimpleVariant::_applyCurrency ( oxPrice  $oPrice,
  $oCur = null 
)
protected

Applies currency factor

Parameters
oxPrice$oPricePrice object
object$oCurCurrency object

Definition at line 172 of file oxsimplevariant.php.

oxSimpleVariant::_applyParentDiscounts (   $oPrice)
protected

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

Parameters
oxprice$oPricePrice object

Definition at line 186 of file oxsimplevariant.php.

oxSimpleVariant::_applyParentVat (   $oPrice)
protected

apply parent article VAT to given price

Parameters
oxPrice$oPriceprice object

Definition at line 198 of file oxsimplevariant.php.

oxSimpleVariant::_getGroupPrice ( )
protected

get user Group A, B or C price, returns db price if user is not in groups

Returns
double

Definition at line 114 of file oxsimplevariant.php.

oxSimpleVariant::assign (   $aRecord)

Assigns to oxarticle object some base parameters/values (such as detaillink, moredetaillink, etc).

Parameters
string$aRecordArray representing current field values

Reimplemented from oxBase.

Definition at line 76 of file oxsimplevariant.php.

oxSimpleVariant::getArticleUser ( )

Returns article user

Returns
oxUser

Definition at line 100 of file oxsimplevariant.php.

oxSimpleVariant::getBaseSeoLink (   $iLang)

Returns raw recommlist seo url

Parameters
int$iLanglanguage id
Returns
string

Definition at line 352 of file oxsimplevariant.php.

oxSimpleVariant::getBaseStdLink (   $iLang,
  $blAddId = true,
  $blFull = true 
)

Returns base dynamic url: shopurl/index.php?cl=details

Parameters
int$iLanglanguage id
bool$blAddIdadd current object id to url or not
bool$blFullreturn full including domain name [optional]
Returns
string

Implements oxIUrl.

Definition at line 308 of file oxsimplevariant.php.

oxSimpleVariant::getFPrice ( )

Returns formated product price.

Returns
double

Definition at line 220 of file oxsimplevariant.php.

oxSimpleVariant::getLink (   $iLang = null)

Gets article link

Parameters
int$iLangrequired language id [optional]
Returns
string

Implements oxIUrl.

Definition at line 364 of file oxsimplevariant.php.

oxSimpleVariant::getLinkType ( )

Get link type

Returns
int

Definition at line 255 of file oxsimplevariant.php.

oxSimpleVariant::getParent ( )

Parent article getter.

Returns
oxArticle

Definition at line 245 of file oxsimplevariant.php.

oxSimpleVariant::getPrice ( )

Implementing (faking) performance friendly method from oxArticle

Returns
oxPrice

Definition at line 141 of file oxsimplevariant.php.

oxSimpleVariant::getSelectLists ( )

Implementing (fakeing) performance friendly method from oxArticle *oxbase

Returns
null

Definition at line 90 of file oxsimplevariant.php.

oxSimpleVariant::getStdLink (   $iLang = null,
  $aParams = array() 
)

Gets article link

Parameters
int$iLangrequired language [optional]
array$aParamsadditional params to use [optional]
Returns
string

Implements oxIUrl.

Definition at line 328 of file oxsimplevariant.php.

oxSimpleVariant::inCategory (   $sCatNid)

Checks if article is assigned to category

Parameters
string$sCatNidcategory ID
Returns
bool

Definition at line 272 of file oxsimplevariant.php.

oxSimpleVariant::inPriceCategory (   $sCatNid)

Checks if article is assigned to price category $sCatNID

Parameters
string$sCatNidPrice category ID
Returns
bool

Definition at line 289 of file oxsimplevariant.php.

oxSimpleVariant::setParent (   $oParent)

Sets parent article

Parameters
oxArticle$oParentParent article

Definition at line 235 of file oxsimplevariant.php.

oxSimpleVariant::setPrice (   $oPrice)

Price setter

Parameters
object$oPriceprice object

Definition at line 210 of file oxsimplevariant.php.

Member Data Documentation

oxSimpleVariant::$_aBaseStdUrls = array()
protected

Definition at line 43 of file oxsimplevariant.php.

oxSimpleVariant::$_aSeoUrls = array()
protected

Definition at line 50 of file oxsimplevariant.php.

oxSimpleVariant::$_aStdUrls = array()
protected

Definition at line 36 of file oxsimplevariant.php.

oxSimpleVariant::$_blUseLazyLoading = true
protected

Definition at line 15 of file oxsimplevariant.php.

oxSimpleVariant::$_oParent = null
protected

Definition at line 29 of file oxsimplevariant.php.

oxSimpleVariant::$_oPrice = null
protected

Definition at line 22 of file oxsimplevariant.php.

oxSimpleVariant::$_oUser = null
protected

Definition at line 57 of file oxsimplevariant.php.


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