Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

oxArticle Class Reference

Inheritance diagram for oxArticle:
Collaboration diagram for oxArticle:

List of all members.

Public Member Functions

 __construct ($aParams=null)
 __get ($sName)
 __set ($sName, $sValue)
 setId ($sId=null)
 getActiveCheckQuery ($blForceCoreTable=null)
 getStockCheckQuery ($blForceCoreTable=null)
 getVariantsQuery ($blRemoveNotOrderables, $blForceCoreTable=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 setSkipAssign ($blSkipAssign)
 disablePriceLoad ()
 enablePriceLoad ()
 getItemKey ()
 setItemKey ($sItemKey)
 setNoVariantLoading ($blLoadVariants)
 isBuyable ()
 getPersParams ()
 isOnComparisonList ()
 setOnComparisonList ($blOnList)
 setLoadParentData ($blLoadParentData)
 setSkipAbPrice ($blSkipAbPrice=null)
 getSearchableFields ()
 isMultilingualField ($sFieldName)
 isVisible ()
 assign ($aRecord)
 load ($oxID)
 addToRatingAverage ($iRating)
 setRatingAverage ($iRating)
 setRatingCount ($iRatingCnt)
 getArticleRatingAverage ($blIncludeVariants=false)
 getArticleRatingCount ($blIncludeVariants=false)
 getReviews ()
 getCrossSelling ()
 getAccessoires ()
 getSimilarProducts ()
 getCustomerAlsoBoughtThisProducts ()
 loadAmountPriceInfo ()
 getSelectLists ($sKeyPrefix=null)
 hasMdVariants ()
 getVariantSelections ($aFilterIds=null, $sActVariantId=null, $iLimit=0)
 getSelections ($iLimit=null, $aFilter=null)
 getFullVariants ($blRemoveNotOrderables=true, $blForceCoreTable=null)
 getVariants ($blRemoveNotOrderables=true, $blForceCoreTable=null)
 getSimpleVariants ()
 getAdminVariants ($sLanguage=null)
 getCategory ()
 getCategoryIds ($blActCats=false, $blSkipCache=false)
 getVendor ($blShopCheck=true)
 getVendorId ($blForceReload=false)
 getManufacturerId ($blForceReload=false)
 getManufacturer ($blShopCheck=true)
 inCategory ($sCatNid)
 isAssignedToCategory ($sCatId)
 getTPrice ()
 skipDiscounts ()
 setPrice (oxPrice $oPrice)
 getBasePrice ($dAmount=1)
 getPrice ($dAmount=1)
 setArticleUser ($oUser)
 getArticleUser ()
 getBasketPrice ($dAmount, $aSelList, $oBasket)
 applyBasketDiscounts (oxPrice $oPrice, $aDiscounts, $dAmount=1)
 delete ($sOXID=null)
 reduceStock ($dAmount, $blAllowNegativeStock=false)
 updateSoldAmount ($dAmount=0)
 disableReminder ()
 save ()
 resetParent ()
 getPictureGallery ()
 onChange ($sAction=null, $sOXID=null, $sParentID=null)
 getCustomVAT ()
 checkForStock ($dAmount, $dArtStockAmount=0)
 getArticleLongDesc ($sOxid=null)
 getLongDescription ()
 getLongDesc ()
 setArticleLongDesc ($sDesc, $sOrigValue=null)
 getAttributes ()
 appendLink ($sAddParams, $iLang=null)
 getBaseSeoLink ($iLang, $blMain=false)
 getLink ($iLang=null, $blMain=false)
 getMainLink ($iLang=null)
 setLinkType ($iType)
 getLinkType ()
 appendStdLink ($sAddParams, $iLang=null)
 getBaseStdLink ($iLang, $blAddId=true, $blFull=true)
 getStdLink ($iLang=null, $aParams=array())
 getStdTagLink ($sTag)
 getTags ()
 saveTags ($sTags)
 addTag ($sTag)
 getMediaUrls ()
 getDynImageDir ()
 getDispSelList ()
 getMoreDetailLink ()
 getToBasketLink ()
 getStockStatus ()
 getDeliveryDate ()
 getFTPrice ()
 getFPrice ()
 resetRemindStatus ()
 getFNetPrice ()
 getPricePerUnit ()
 isParentNotBuyable ()
 isNotBuyable ()
 setBuyableState ($blBuyable=false)
 getVariantList ()
 setSelectlist ($aSelList)
 getPictureUrl ($iIndex=1)
 getIconUrl ($iIndex=0)
 getThumbnailUrl ($bSsl=null)
 getZoomPictureUrl ($iIndex= '')
 getFileUrl ()
 getPriceFromPrefix ()
 getArticleVat ()
 applyVats (oxPrice $oPrice)
 applyDiscountsForVariant ($oPrice)
 getParentArticle ()
 updateVariantsRemind ()
 getProductId ()
 getProductParentId ()
 isOrderArticle ()
 isVariant ()
 isMdVariant ()
 getSqlForPriceCategories ($sFields= '')
 inPriceCategory ($sCatNid)
 getMdVariants ()
 getMdSubvariants ()
 getPictureFieldValue ($sFieldName, $iIndex=null)
 getMasterZoomPictureUrl ($iIndex)
 getUnitName ()
 getArticleFiles ($blAddFromParent=false)
 isDownloadable ()
 hasAmountPrice ()

Protected Member Functions

 _hasAnyVariant ($blForceCoreTable=null)
 _loadVariantList ($blSimple, $blRemoveNotOrderables=true, $blForceCoreTable=null)
 _getSelectCatIds ($sOXID, $blActCats=false)
 _calculatePrice ($oPrice, $dVat=null)
 _setLongDesc ($sDbValue)
 _saveArtLongDesc ()
 _skipSaveFields ()
 _mergeDiscounts ($aDiscounts, $aItemDiscounts)
 _getGroupPrice ()
 _getAmountPrice ($dAmount=1)
 _modifySelectListPrice ($dPrice, $aChosenList=null)
 _fillAmountPriceList ($oAmPriceList)
 _getVariantsIds ()
 _applyVAT (oxPrice $oPrice, $dVat)
 _applyDiscounts ($oPrice, $aDiscounts)
 _applyCurrency (oxPrice $oPrice, $oCur=null)
 _getAttribsString (&$sAttribs, &$iCnt)
 _getSimList ($sAttribs, $iCnt)
 _generateSimListSearchStr ($sArticleTable, $aList)
 _generateSearchStr ($sOXID, $blSearchPriceCat=false)
 _generateSearchStrForCustomerBought ()
 _generateSelectCatStr ($sOXID, $sCatId, $dPriceFromTo=false)
 _getAmountPriceList ()
 _isFieldEmpty ($sFieldName)
 _assignParentFieldValue ($sFieldName)
 _getParentAricle ()
 _assignParentFieldValues ()
 _assignNotBuyableParent ()
 _assignStock ()
 _assignPrices ()
 _assignPersistentParam ()
 _assignDynImageDir ()
 _assignComparisonListFlag ()
 _assignAttributes ()
 _insert ()
 _update ()
 _deleteRecords ($sOXID)
 _deleteVariantRecords ($sOXID)
 _resetCacheAndArticleCount ($sOxid)
 _deletePics ()
 _onChangeResetCounts ($sOxid, $sVendorId=null, $sManufacturerId=null)
 _onChangeUpdateStock ($sParentID)
 _onChangeStockResetCount ($sOxid)
 _onChangeUpdateVarCount ($sParentID)
 _onChangeUpdateMinVarPrice ($sParentID)
 _applyRangePrice ()
 _hasMasterImage ($iIndex)

Protected Attributes

 $_sClassName = 'oxarticle'
 $_blUseLazyLoading = true
 $_sItemKey
 $_blCalcPrice = true
 $_oPrice = null
 $_dArticleVat = null
 $_aPersistParam = null
 $_blNotBuyable = false
 $_blLoadVariants = true
 $_aVariants = null
 $_aVariantsWithNotOrderables = null
 $_blNotBuyableParent = false
 $_blHasVariants = false
 $_blHasMdVariants = false
 $_blIsOnComparisonList = false
 $_oUser = null
 $_blLoadPrice = true
 $_blSkipAbPrice = false
 $_fPricePerUnit = null
 $_blLoadParentData = false
 $_blAllowEmptyParentId = false
 $_blSkipAssign = false
 $_blSkipDiscounts = null
 $_oAttributeList = null
 $_blIsRangePrice = false
 $_aMediaUrls = null
 $_aDispSelList
 $_blIsSeoObject = true
 $_oAmountPriceList = null
 $_iLinkType = 0
 $_aStdUrls = array()
 $_aSeoUrls = array()
 $_aSeoAddParams = array()
 $_aStdAddParams = array()
 $_sDynImageDir = null
 $_sMoreDetailLink = null
 $_sToBasketLink = null
 $_iStockStatus = null
 $_oTPrice = null
 $_oAmountPriceInfo = null
 $_dAmountPrice = null
 $_aNonCopyParentFields
 $_aCopyParentField
 $_oMdVariants = null
 $_oLongDesc = null
 $_aVariantSelections = array()
 $_aArticleFiles = null

Static Protected Attributes

static $_aLoadedParents
static $_aSelList
static $_aArticleManufacturers = array()
static $_aArticleVendors = array()
static $_aArticleCats = array()
static $_aSelections = array()
static $_aCategoryCache = null
static $_blHasAmountPrice = null

Detailed Description

Article manager. Creates fully detailed article object, with such information as VAT, discounts, etc.

Definition at line 17 of file oxarticle.php.


Constructor & Destructor Documentation

oxArticle.__construct ( aParams = null  ) 

Class constructor, sets shop ID for article (oxconfig.getShopId()), initiates parent constructor (parent.oxI18n()).

Parameters:
array $aParams The array of names and values of oxArticle instance properties to be set on object instantiation
Returns:
null

Definition at line 412 of file oxarticle.php.


Member Function Documentation

oxArticle.__get ( sName  ) 

Magic getter, deals with deprecated values and long description which is loaded on demand. Additionally it sets default value for unknown picture fields

Parameters:
string $sName Variable name
Returns:
mixed

Definition at line 433 of file oxarticle.php.

oxArticle.__set ( sName,
sValue 
)

Sets article parameter

Parameters:
string $sName name of parameter to set
mixed $sValue parameter value
Returns:
null

Definition at line 458 of file oxarticle.php.

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

Applies currency factor

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

Definition at line 3375 of file oxarticle.php.

oxArticle._applyDiscounts ( oPrice,
aDiscounts 
) [protected]

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

Parameters:
oxprice $oPrice Price object
array $aDiscounts Discount list
Deprecated:
use oxDiscountList.applyDiscounts() instead
Returns:
null

Definition at line 3345 of file oxarticle.php.

oxArticle._applyRangePrice (  )  [protected]

Returns minimum brut price from all (already loaded) variants and if aplicable parent article

Returns:
null;

Definition at line 4310 of file oxarticle.php.

oxArticle._applyVAT ( oxPrice oPrice,
dVat 
) [protected]

Applies VAT to article

Parameters:
oxPrice $oPrice Price object
double $dVat VAT percent
Returns:
null

Definition at line 3313 of file oxarticle.php.

oxArticle._assignAttributes (  )  [protected]

Assigns atttibutes to article

Returns:
null;

Definition at line 3964 of file oxarticle.php.

oxArticle._assignComparisonListFlag (  )  [protected]

Adds a flag if article is on comparisonlist.

Returns:
null;

Definition at line 3949 of file oxarticle.php.

oxArticle._assignDynImageDir (  )  [protected]

assigns dynimagedir to article

Returns:
null;

Definition at line 3932 of file oxarticle.php.

oxArticle._assignNotBuyableParent (  )  [protected]

if we have variants then depending on config option the parent may be non buyable

Returns:
null

Definition at line 3805 of file oxarticle.php.

oxArticle._assignParentFieldValue ( sFieldName  )  [protected]

Assigns parent field values to article

Parameters:
string $sFieldName field name
Returns:
null;

Definition at line 3707 of file oxarticle.php.

oxArticle._assignParentFieldValues (  )  [protected]

Assigns parent field values to article

Returns:
null;

Definition at line 3786 of file oxarticle.php.

oxArticle._assignPersistentParam (  )  [protected]

assigns persistent param to article

Returns:
null;

Definition at line 3918 of file oxarticle.php.

oxArticle._assignPrices (  )  [protected]

Assigns prices to article

Returns:
null

Definition at line 3890 of file oxarticle.php.

oxArticle._assignStock (  )  [protected]

Assigns stock status to article

Returns:
null

Definition at line 3819 of file oxarticle.php.

oxArticle._calculatePrice ( oPrice,
dVat = null 
) [protected]

Calculates price of article (adds taxes, currency and discounts).

Parameters:
oxPrice $oPrice price object
double $dVat vat value, optional, if passed, bypasses "bl_perfCalcVatOnlyForBasketOrder" config value
Returns:
oxPrice

Definition at line 1847 of file oxarticle.php.

oxArticle._deletePics (  )  [protected]

Delete pics

Returns:
null

Definition at line 4135 of file oxarticle.php.

oxArticle._deleteRecords ( sOXID  )  [protected]

Deletes records in database

Parameters:
string $sOXID Article ID
Returns:
int

Definition at line 4040 of file oxarticle.php.

oxArticle._deleteVariantRecords ( sOXID  )  [protected]

Deletes variant records

Parameters:
string $sOXID Article ID
Returns:
null

Definition at line 4100 of file oxarticle.php.

oxArticle._fillAmountPriceList ( oAmPriceList  )  [protected]

Fills amount price list object and sets amount price for article object

Parameters:
object $oAmPriceList Amount (staffel) price list
Returns:
object

Definition at line 3216 of file oxarticle.php.

oxArticle._generateSearchStr ( sOXID,
blSearchPriceCat = false 
) [protected]

Generates SearchString for getCategory()

Parameters:
string $sOXID Article ID
bool $blSearchPriceCat Whether to perform the search within price categories
Returns:
string

Definition at line 3503 of file oxarticle.php.

oxArticle._generateSearchStrForCustomerBought (  )  [protected]

Generates SQL select string for getCustomerAlsoBoughtThisProduct

Returns:
string

Definition at line 3527 of file oxarticle.php.

oxArticle._generateSelectCatStr ( sOXID,
sCatId,
dPriceFromTo = false 
) [protected]

Generates select string for isAssignedToCategory()

Parameters:
string $sOXID Article ID
string $sCatId Category ID
bool $dPriceFromTo Article price for price categories
Returns:
string

Definition at line 3587 of file oxarticle.php.

oxArticle._generateSimListSearchStr ( sArticleTable,
aList 
) [protected]

Generates search string for similar list.

Parameters:
string $sArticleTable Article table name
array $aList A list of original articles
Returns:
string

Definition at line 3465 of file oxarticle.php.

oxArticle._getAmountPrice ( dAmount = 1  )  [protected]

Modifies article price depending on given amount. Takes data from oxprice2article table.

Parameters:
double $dAmount Basket amount
Returns:
bool | null

Definition at line 3158 of file oxarticle.php.

oxArticle._getAmountPriceList (  )  [protected]

Collecting assigned to article amount-price list

Returns:
oxList

Definition at line 3615 of file oxarticle.php.

oxArticle._getAttribsString ( &$  sAttribs,
&$  iCnt 
) [protected]

gets attribs string

Parameters:
string &$sAttribs Attribute selection snippet
int &$iCnt The number of selected attributes
Returns:
null;

Definition at line 3393 of file oxarticle.php.

oxArticle._getGroupPrice (  )  [protected]

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

Returns:
double

Definition at line 3127 of file oxarticle.php.

oxArticle._getParentAricle (  )  [protected]

Get parent article

Deprecated:
since version 4.2
Returns:
oxArticle

Definition at line 3776 of file oxarticle.php.

oxArticle._getSelectCatIds ( sOXID,
blActCats = false 
) [protected]

Returns query for article categories select

Parameters:
string $sOXID article id
bool $blActCats select categories if all parents are active
Returns:
string

Definition at line 1551 of file oxarticle.php.

oxArticle._getSimList ( sAttribs,
iCnt 
) [protected]

Gets similar list.

Parameters:
string $sAttribs Attribute selection snippet
int $iCnt Similar list article count
Returns:
array

Definition at line 3423 of file oxarticle.php.

oxArticle._getVariantsIds (  )  [protected]

Collects and returns article variants ids.

Returns:
array

Definition at line 3274 of file oxarticle.php.

oxArticle._hasAnyVariant ( blForceCoreTable = null  )  [protected]

Checks if parent has ANY variant assigned

Parameters:
bool $blForceCoreTable force core table usage
Returns:
bool

Definition at line 1159 of file oxarticle.php.

oxArticle._hasMasterImage ( iIndex  )  [protected]

Checks if article has uplodaded master image for selected picture

Parameters:
int $iIndex master picture index
Returns:
bool

Definition at line 4500 of file oxarticle.php.

oxArticle._insert (  )  [protected]

Sets article creation date (oxarticle.oxarticles__oxinsert). Then executes parent method parent._insert() and returns insertion status.

Returns:
bool

Definition at line 3981 of file oxarticle.php.

oxArticle._isFieldEmpty ( sFieldName  )  [protected]

Detects if field is empty.

Parameters:
string $sFieldName Field name
Returns:
bool

Definition at line 3663 of file oxarticle.php.

oxArticle._loadVariantList ( blSimple,
blRemoveNotOrderables = true,
blForceCoreTable = null 
) [protected]

Loads and returns variants list.

Parameters:
bool $blSimple If parameter $blSimple - list will be filled with oxSimpleVariant objects, else - oxArticle
bool $blRemoveNotOrderables if true, removes from list not orderable articles, which are out of stock [optional]
bool $blForceCoreTable if true forces core tabel use, default is false [optional]
Returns:
array | oxsimplevariantlist | oxarticlelist

Definition at line 1282 of file oxarticle.php.

oxArticle._mergeDiscounts ( aDiscounts,
aItemDiscounts 
) [protected]

Merges two discount arrays. If there are two the same discounts, discount values will be added.

Parameters:
array $aDiscounts Discount array
array $aItemDiscounts Discount array
Returns:
array $aDiscounts

Definition at line 3109 of file oxarticle.php.

oxArticle._modifySelectListPrice ( dPrice,
aChosenList = null 
) [protected]

Modifies article price according to selected select list value

Parameters:
double $dPrice Modifyable price
array $aChosenList Selection list array
Returns:
double

Definition at line 3186 of file oxarticle.php.

oxArticle._onChangeResetCounts ( sOxid,
sVendorId = null,
sManufacturerId = null 
) [protected]

Resets category and vendor counts. This method is supposed to be called on article change triger.

Parameters:
string $sOxid object to reset id ID
string $sVendorId Vendor ID
string $sManufacturerId Manufacturer ID
Returns:
null

Definition at line 4165 of file oxarticle.php.

oxArticle._onChangeStockResetCount ( sOxid  )  [protected]

Resets article count cache when stock value is zero and article goes offline.

Parameters:
string $sOxid product id
Returns:
null

Definition at line 4237 of file oxarticle.php.

oxArticle._onChangeUpdateMinVarPrice ( sParentID  )  [protected]

Updates variant min price. This method is supposed to be called on article change triger.

Parameters:
string $sParentID Parent ID
Returns:
null

Definition at line 4275 of file oxarticle.php.

oxArticle._onChangeUpdateStock ( sParentID  )  [protected]

Updates article stock. This method is supposed to be called on article change triger.

Parameters:
string $sParentID product parent id
Returns:
null

Definition at line 4197 of file oxarticle.php.

oxArticle._onChangeUpdateVarCount ( sParentID  )  [protected]

Updates variant count. This method is supposed to be called on article change triger.

Parameters:
string $sParentID Parent ID
Returns:
null

Definition at line 4255 of file oxarticle.php.

oxArticle._resetCacheAndArticleCount ( sOxid  )  [protected]

Resets cache and article count in vendor and category

Parameters:
string $sOxid reset article id
Deprecated:
since Jan 21, 2009
Returns:
null

Definition at line 4125 of file oxarticle.php.

oxArticle._saveArtLongDesc (  )  [protected]

inserts article long description to artextends table

Returns:
null

Definition at line 3028 of file oxarticle.php.

oxArticle._setLongDesc ( sDbValue  )  [protected]

set given value to object's oxlongdesc - also prepare it (parse throug smarty)

Parameters:
string $sDbValue value to set
Deprecated:
since 2011.03.10
Returns:
null

Definition at line 2354 of file oxarticle.php.

oxArticle._skipSaveFields (  )  [protected]

Removes object data fields (oxarticles__oxtimestamp, oxarticles__oxparentid, oxarticles__oxinsert).

Returns:
null

Definition at line 3084 of file oxarticle.php.

oxArticle._update (  )  [protected]

Executes oxarticle._skipSaveFields() and updates article information

Returns:
bool

Definition at line 3999 of file oxarticle.php.

oxArticle.addTag ( sTag  ) 

Adds tag

Parameters:
string $sTag new tag
Returns:
bool

Definition at line 2636 of file oxarticle.php.

oxArticle.addToRatingAverage ( iRating  ) 

Calculates and saves product rating average

Parameters:
integer $iRating new rating value
Returns:
null

Definition at line 879 of file oxarticle.php.

oxArticle.appendLink ( sAddParams,
iLang = null 
)

Appends article seo url with additional request parameters

Parameters:
string $sAddParams additional parameters which needs to be added to product url
int $iLang language id
Returns:
null

Definition at line 2414 of file oxarticle.php.

oxArticle.appendStdLink ( sAddParams,
iLang = null 
)

Appends article dynemic url with additional request parameters

Parameters:
string $sAddParams additional parameters which needs to be added to product url
int $iLang language id
Returns:
null

Definition at line 2521 of file oxarticle.php.

oxArticle.applyBasketDiscounts ( oxPrice oPrice,
aDiscounts,
dAmount = 1 
)

Applies discoutns which are supposed to be applied on amounts greater than zero. Returns applied discounts.

Parameters:
oxPrice $oPrice Old article price
array $aDiscounts Discount array
amount $dAmount Amount in basket
Deprecated:
use oxDiscountList.applyBasketDiscounts() instead
Returns:
array

Definition at line 1934 of file oxarticle.php.

oxArticle.applyDiscountsForVariant ( oPrice  ) 

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

Parameters:
oxprice $oPrice Price object
Returns:
null

Definition at line 3358 of file oxarticle.php.

oxArticle.applyVats ( oxPrice oPrice  ) 

apply article and article use

Parameters:
oxPrice $oPrice target price
Returns:
null

Definition at line 3330 of file oxarticle.php.

oxArticle.assign ( aRecord  ) 

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

Parameters:
string $aRecord Array representing current field values
Returns:
null

Definition at line 815 of file oxarticle.php.

oxArticle.checkForStock ( dAmount,
dArtStockAmount = 0 
)

Checks if stock configuration allows to buy user chosen amount $dAmount

Parameters:
double $dAmount buyable amount
double $dArtStockAmount stock amount
Returns:
mixed

Definition at line 2257 of file oxarticle.php.

oxArticle.delete ( sOXID = null  ) 

Deletes record and other information related to this article such as images from DB, also removes variants. Returns true on success.

Parameters:
string $sOXID Article id
Returns:
bool

Definition at line 1948 of file oxarticle.php.

oxArticle.disablePriceLoad (  ) 

Disables article price loading. Should be called before assign(), or load()

Returns:
null

Definition at line 618 of file oxarticle.php.

oxArticle.disableReminder (  ) 

Disables reminder functionality for article

Returns:
bool

Definition at line 2039 of file oxarticle.php.

oxArticle.enablePriceLoad (  ) 

Enable article price loading, if disabled.

Returns:
null

Definition at line 628 of file oxarticle.php.

oxArticle.getAccessoires (  ) 

Loads and returns array with accessoires information.

Returns:
array

Definition at line 1002 of file oxarticle.php.

oxArticle.getActiveCheckQuery ( blForceCoreTable = null  ) 

Returns part of sql query used in active snippet. Query checks if product "oxactive = 1". If config option "blUseTimeCheck" is TRUE additionally checks if "oxactivefrom < current data < oxactiveto"

Parameters:
bool $blForceCoreTable force core table usage
Returns:
string

Definition at line 499 of file oxarticle.php.

oxArticle.getAdminVariants ( sLanguage = null  ) 

Loads article variants and returns variants list object. Article language may be set by passing with parameter, or GET/POST/Session variable.

Parameters:
string $sLanguage shop language.
Returns:
object

Definition at line 1408 of file oxarticle.php.

oxArticle.getArticleFiles ( blAddFromParent = false  ) 

Return article downloadable file list (oxlist of oxfile)

Parameters:
bool $blAddFromParent - return with parent files if not buyable
Returns:
null|oxList of oxFile

Definition at line 4577 of file oxarticle.php.

oxArticle.getArticleLongDesc ( sOxid = null  ) 

Get article long description

Parameters:
string $sOxid Article ID
Returns:
object $oField field object
Deprecated:
since 2012-02-13 in version 4.6.0; use getLongDescription()

Definition at line 2310 of file oxarticle.php.

oxArticle.getArticleRatingAverage ( blIncludeVariants = false  ) 

Returns product rating average

Parameters:
bool $blIncludeVariants - include variant ratings
Returns:
double

Definition at line 923 of file oxarticle.php.

oxArticle.getArticleRatingCount ( blIncludeVariants = false  ) 

Returns product rating count

Parameters:
bool $blIncludeVariants - include variant ratings
Returns:
double

Definition at line 940 of file oxarticle.php.

oxArticle.getArticleUser (  ) 

return article user

Returns:
oxUser

Definition at line 1882 of file oxarticle.php.

oxArticle.getArticleVat (  ) 

retrieve article VAT (cached)

Returns:
double

Definition at line 3297 of file oxarticle.php.

oxArticle.getAttributes (  ) 

Loads and returns attribute list associated with this article

Returns:
object

Definition at line 2396 of file oxarticle.php.

oxArticle.getBasePrice ( dAmount = 1  ) 

Returns base article price from database. Price may differ according to users group Override this function if you want e.g. different prices for diff. usergroups.

Parameters:
double $dAmount article amount. Default is 1
Returns:
double

Definition at line 1785 of file oxarticle.php.

oxArticle.getBaseSeoLink ( iLang,
blMain = false 
)

Returns raw article seo url

Parameters:
int $iLang language id
bool $blMain force to return main url [optional]
Returns:
string

Definition at line 2434 of file oxarticle.php.

oxArticle.getBaseStdLink ( iLang,
blAddId = true,
blFull = true 
)

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

Parameters:
int $iLang language id
bool $blAddId add current object id to url or not [optional]
bool $blFull return full including domain name [optional]
Returns:
string

Implements oxIUrl.

Definition at line 2542 of file oxarticle.php.

oxArticle.getBasketPrice ( dAmount,
aSelList,
oBasket 
)

Creates, calculates and returns oxprice object for basket product.

Parameters:
double $dAmount Amount
string $aSelList Selection list
object $oBasket User shopping basket object
Returns:
oxPrice

Definition at line 1899 of file oxarticle.php.

oxArticle.getCategory (  ) 

Loads and returns article category object. First tries to load assigned category and is such category does not exist, tries to load category by price

Returns:
oxcategory

Definition at line 1441 of file oxarticle.php.

oxArticle.getCategoryIds ( blActCats = false,
blSkipCache = false 
)

Returns ID's of categories where this article is assigned

Parameters:
bool $blActCats select categories if all parents are active
bool $blSkipCache Whether to skip cache
Returns:
array

Definition at line 1492 of file oxarticle.php.

oxArticle.getCrossSelling (  ) 

Loads and returns array with crosselling information.

Returns:
array

Definition at line 988 of file oxarticle.php.

oxArticle.getCustomerAlsoBoughtThisProducts (  ) 

Loads and returns articles list, bought by same customer.

Returns:
array

Definition at line 1063 of file oxarticle.php.

oxArticle.getCustomVAT (  ) 

Returns custom article VAT value if possible By default value is taken from oxarticle__oxvat field

Returns:
double

Definition at line 2242 of file oxarticle.php.

oxArticle.getDeliveryDate (  ) 

Returns formated delivery date. If the date is not set ('0000-00-00') returns false.

Returns:
string | bool

Definition at line 2786 of file oxarticle.php.

oxArticle.getDispSelList (  ) 

Returns select lists to display

Returns:
array

Definition at line 2699 of file oxarticle.php.

oxArticle.getDynImageDir (  ) 

Get image url

Returns:
array

Definition at line 2689 of file oxarticle.php.

oxArticle.getFileUrl (  ) 

Returns article file url

Returns:
string

Definition at line 3003 of file oxarticle.php.

oxArticle.getFNetPrice (  ) 

Returns formated product's NETTO price.

Returns:
double

Definition at line 2839 of file oxarticle.php.

oxArticle.getFPrice (  ) 

Returns formated product's price.

Returns:
double

Definition at line 2813 of file oxarticle.php.

oxArticle.getFTPrice (  ) 

Returns rounded T price.

Returns:
double | bool

Definition at line 2799 of file oxarticle.php.

oxArticle.getFullVariants ( blRemoveNotOrderables = true,
blForceCoreTable = null 
)

Returns variant list (list contains oxArticle objects)

Parameters:
bool $blRemoveNotOrderables if true, removes from list not orderable articles, which are out of stock [optional]
bool $blForceCoreTable if true forces core tabel use, default is false [optional]
Returns:
oxarticlelist

Definition at line 1370 of file oxarticle.php.

oxArticle.getIconUrl ( iIndex = 0  ) 

Returns article icon picture url. If no index specified, will return main icon url.

Parameters:
int $iIndex picture index
Returns:
string

Definition at line 2941 of file oxarticle.php.

oxArticle.getItemKey (  ) 

Returns item key used with oxuserbasket

Returns:
string

Definition at line 638 of file oxarticle.php.

oxArticle.getLink ( iLang = null,
blMain = false 
)

Gets article link

Parameters:
int $iLang language id [optional]
bool $blMain force to return main url [optional]
Returns:
string

Definition at line 2451 of file oxarticle.php.

oxArticle.getLinkType (  ) 

Get link type

Returns:
int

Definition at line 2508 of file oxarticle.php.

oxArticle.getLongDesc (  ) 

get long description, parsed through smarty. should only be used by exports or so. In templates use [{oxeval var=$oProduct->getLongDescription()->getRawValue()}]

Returns:
string

Definition at line 2365 of file oxarticle.php.

oxArticle.getLongDescription (  ) 

Get article long description

Returns:
object $oField field object

Definition at line 2320 of file oxarticle.php.

oxArticle.getMainLink ( iLang = null  ) 

Returns main object URL. If SEO is ON returned link will be in SEO form, else URL will have dynamic form

Parameters:
int $iLang language id [optional]
Returns:
string

Definition at line 2482 of file oxarticle.php.

oxArticle.getManufacturer ( blShopCheck = true  ) 

Returns current article Manufacturer object. If $blShopCheck = false, then Manufacturer blReadOnly parameter will be set to true. If Manufacturer is not assigned to current shop

Parameters:
bool $blShopCheck Set false if shop check is not required (default is true)
Returns:
object

Definition at line 1638 of file oxarticle.php.

oxArticle.getManufacturerId ( blForceReload = false  ) 

Returns article object Manufacturer ID. Result is cached into self.$_aArticleManufacturers

Parameters:
bool $blForceReload reloads id even if it is cached
Returns:
string

Definition at line 1618 of file oxarticle.php.

oxArticle.getMasterZoomPictureUrl ( iIndex  ) 

Get master zoom picture url

Parameters:
int $iIndex picture index
Returns:
string

Definition at line 4543 of file oxarticle.php.

oxArticle.getMdSubvariants (  ) 

Returns first level variants from multidimensional variants list

Returns:
OxMdVariants

Definition at line 4488 of file oxarticle.php.

oxArticle.getMdVariants (  ) 

Returns multidimensional variant structure

Returns:
OxMdVariants

Definition at line 4464 of file oxarticle.php.

oxArticle.getMediaUrls (  ) 

Return article media URL

Returns:
array

Definition at line 2670 of file oxarticle.php.

oxArticle.getMoreDetailLink (  ) 

Get more details link

Returns:
string

Definition at line 2714 of file oxarticle.php.

oxArticle.getParentArticle (  ) 

Get parent article

Returns:
oxArticle

Definition at line 3754 of file oxarticle.php.

oxArticle.getPersParams (  ) 

Get persistent parameters

Returns:
array

Definition at line 686 of file oxarticle.php.

oxArticle.getPictureFieldValue ( sFieldName,
iIndex = null 
)

Return article picture file name

Parameters:
string $sFieldName article picture field name
int $iIndex article picture index
Returns:
string

Definition at line 4528 of file oxarticle.php.

oxArticle.getPictureGallery (  ) 

collect article pics, icons, zoompic and puts it all in an array structure of array (ActPicID, ActPic, MorePics, Pics, Icons, ZoomPic)

Returns:
array

Definition at line 2099 of file oxarticle.php.

oxArticle.getPictureUrl ( iIndex = 1  ) 

Returns article picture

Parameters:
int $iIndex picture index
Returns:
string

Definition at line 2920 of file oxarticle.php.

oxArticle.getPrice ( dAmount = 1  ) 

Calculates and returns price of article (adds taxes and discounts).

Parameters:
double $dAmount article amount
Returns:
oxPrice

Definition at line 1809 of file oxarticle.php.

oxArticle.getPriceFromPrefix (  ) 

Returns string prefix (like "ab") if needed or empty string.

Returns:
string

Definition at line 3013 of file oxarticle.php.

oxArticle.getPricePerUnit (  ) 

Returns formated price per unit (oxarticle._assignPrices())

Returns:
string

Definition at line 2851 of file oxarticle.php.

oxArticle.getProductId (  ) 

Returns product id (oxid) (required for interface oxIArticle)

Returns:
string

Definition at line 4371 of file oxarticle.php.

oxArticle.getProductParentId (  ) 

Returns product parent id (oxparentid)

Returns:
string

Definition at line 4381 of file oxarticle.php.

oxArticle.getReviews (  ) 

Collects user written reviews about an article.

Returns:
oxList

Definition at line 956 of file oxarticle.php.

oxArticle.getSearchableFields (  ) 

Returns an array of article object DB fields, without multilanguage.

Deprecated:
since 20110826, used only in admin, should not be here
Returns:
array

Definition at line 744 of file oxarticle.php.

oxArticle.getSelections ( iLimit = null,
aFilter = null 
)

Returns product selections lists array (used in azure theme)

Parameters:
int $iLimit if given - will load limited count of selections [optional]
array $aFilter selection filter [optional]
Returns:
array

Definition at line 1221 of file oxarticle.php.

oxArticle.getSelectLists ( sKeyPrefix = null  ) 

Returns all selectlists this article has (used in basic theme and oxbasket)

Parameters:
string $sKeyPrefix Optionall key prefix
Returns:
array

Definition at line 1111 of file oxarticle.php.

oxArticle.getSimilarProducts (  ) 

Returns a list of similar products.

Returns:
array

Definition at line 1025 of file oxarticle.php.

oxArticle.getSimpleVariants (  ) 

Simple way to get variants without quering oxarticle table first. This is basically used for lists.

Returns:
null

Definition at line 1393 of file oxarticle.php.

oxArticle.getSqlActiveSnippet ( blForceCoreTable = null  ) 

Returns SQL select string with checks if items are available

Parameters:
bool $blForceCoreTable forces core table usage (optional)
Returns:
string

Definition at line 587 of file oxarticle.php.

oxArticle.getSqlForPriceCategories ( sFields = ''  ) 

get Sql for loading price categories which include this article

Parameters:
string $sFields fields to load from oxcategories
Returns:
string

Definition at line 4425 of file oxarticle.php.

oxArticle.getStdLink ( iLang = null,
aParams = array() 
)

Returns standard URL to product

Parameters:
int $iLang required language. optional
array $aParams additional params to use [optional]
Returns:
string

Implements oxIUrl.

Definition at line 2562 of file oxarticle.php.

oxArticle.getStdTagLink ( sTag  ) 

Returns standard product Tag URL

Parameters:
string $sTag tag
Returns:
string

Definition at line 2582 of file oxarticle.php.

oxArticle.getStockCheckQuery ( blForceCoreTable = null  ) 

Returns part of sql query used in active snippet. If config option "blUseStock" is TRUE checks if "oxstockflag != 2 or ( oxstock + oxvarstock ) > 0". If config option "blVariantParentBuyable" is TRUE checks if product has variants, and if has - checks is there at least one variant which is buyable. If config option option "blUseTimeCheck" is TRUE additionally checks if variants "oxactivefrom < current data < oxactiveto"

Parameters:
bool $blForceCoreTable force core table usage
Returns:
string

Definition at line 528 of file oxarticle.php.

oxArticle.getStockStatus (  ) 

Get stock status

Returns:
integer

Definition at line 2776 of file oxarticle.php.

oxArticle.getTags (  ) 

Returns article tags

Returns:
string;

Definition at line 2593 of file oxarticle.php.

oxArticle.getThumbnailUrl ( bSsl = null  ) 

Returns article thumbnail picture url

Parameters:
bool $bSsl wethere to force SSL
Returns:
string

Definition at line 2966 of file oxarticle.php.

oxArticle.getToBasketLink (  ) 

Get to basket link

Returns:
string

Definition at line 2737 of file oxarticle.php.

oxArticle.getTPrice (  ) 

Returns T price

Returns:
oxPrice

Definition at line 1715 of file oxarticle.php.

oxArticle.getUnitName (  ) 

Returns oxarticles__oxunitname value processed by oxLang.translateString()

Returns:
string

Definition at line 4563 of file oxarticle.php.

oxArticle.getVariantList (  ) 

Returns variant lists of current product

Deprecated:
See also:
oxArticle.getVariants
Returns:
object

Definition at line 2896 of file oxarticle.php.

oxArticle.getVariants ( blRemoveNotOrderables = true,
blForceCoreTable = null 
)

Collects and returns article variants.

Parameters:
bool $blRemoveNotOrderables if true, removes from list not orderable articles, which are out of stock
bool $blForceCoreTable if true forces core tabel use, default is false [optional]
Returns:
array

Definition at line 1383 of file oxarticle.php.

oxArticle.getVariantSelections ( aFilterIds = null,
sActVariantId = null,
iLimit = 0 
)

Returns variants selections lists array

Parameters:
array $aFilterIds ids of active selections [optional]
string $sActVariantId active variant id [optional]
int $iLimit limit variant lists count (if non zero, return limited number of multidimensional variant selections)
Returns:
array

Definition at line 1193 of file oxarticle.php.

oxArticle.getVariantsQuery ( blRemoveNotOrderables,
blForceCoreTable = null 
)

Returns part of query which checks if product is variant of current object. Additionally if config option "blUseStock" is TRUE checks stock state "( oxstock > 0 or ( oxstock <= 0 and ( oxstockflag = 1 or oxstockflag = 4 ) )"

Parameters:
bool $blRemoveNotOrderables remove or leave non orderable products
bool $blForceCoreTable force core table usage
Returns:
string

Definition at line 563 of file oxarticle.php.

oxArticle.getVendor ( blShopCheck = true  ) 

Returns current article vendor object. If $blShopCheck = false, then vendor loading will fallback to oxI18n object and blReadOnly parameter will be set to true if vendor is not assigned to current shop

Parameters:
bool $blShopCheck Set false if shop check is not required (default is true)
Returns:
object

Definition at line 1573 of file oxarticle.php.

oxArticle.getVendorId ( blForceReload = false  ) 

Returns article object vendor ID. Result is cached into self.$_aArticleVendors

Parameters:
bool $blForceReload reloads id even if it is cached
Returns:
string

Definition at line 1601 of file oxarticle.php.

oxArticle.getZoomPictureUrl ( iIndex = ''  ) 

Returns article zoom picture url

Parameters:
int $iIndex picture index
Returns:
string

Definition at line 2988 of file oxarticle.php.

oxArticle.hasAmountPrice (  ) 

Checks if article has amount price

Returns:
bool

Definition at line 4614 of file oxarticle.php.

oxArticle.hasMdVariants (  ) 

Checks if article has multidimensional variants

Returns:
bool

Definition at line 1179 of file oxarticle.php.

oxArticle.inCategory ( sCatNid  ) 

Checks if article is assigned to category $sCatNID.

Parameters:
string $sCatNid category ID
Returns:
bool

Definition at line 1666 of file oxarticle.php.

oxArticle.inPriceCategory ( sCatNid  ) 

Checks if artickle is assigned to price category $sCatNID.

Parameters:
string $sCatNid Price category ID
Returns:
bool

Definition at line 4444 of file oxarticle.php.

oxArticle.isAssignedToCategory ( sCatId  ) 

Checks if article is assigned to passed category (even checks if this category is "price category"). Returns true on success.

Parameters:
string $sCatId category ID
Returns:
bool

Definition at line 1679 of file oxarticle.php.

oxArticle.isBuyable (  ) 

Checks if article is buyable.

Returns:
bool

Definition at line 672 of file oxarticle.php.

oxArticle.isDownloadable (  ) 

Returns oxarticles__oxisdownloadable value

Returns:
bool

Definition at line 4604 of file oxarticle.php.

oxArticle.isMdVariant (  ) 

Returns TRUE if product is multidimensional variant, and false if not

Returns:
bool

Definition at line 4411 of file oxarticle.php.

oxArticle.isMultilingualField ( sFieldName  ) 

Returns true if the field is multilanguage

Parameters:
string $sFieldName Field name
Returns:
bool

Definition at line 760 of file oxarticle.php.

oxArticle.isNotBuyable (  ) 

Returns true if article is not buyable

Returns:
bool

Definition at line 2871 of file oxarticle.php.

oxArticle.isOnComparisonList (  ) 

Checks whether article is inluded in comparison list

Returns:
bool

Definition at line 696 of file oxarticle.php.

oxArticle.isOrderArticle (  ) 

Returns false if object is not derived from oxorderarticle class

Returns:
bool

Definition at line 4391 of file oxarticle.php.

oxArticle.isParentNotBuyable (  ) 

Returns true if parent is not buyable

Returns:
bool

Definition at line 2861 of file oxarticle.php.

oxArticle.isVariant (  ) 

Returns TRUE if product is variant, and false if not

Returns:
bool

Definition at line 4401 of file oxarticle.php.

oxArticle.isVisible (  ) 

Checks if article has visible status. Returns TRUE if its visible

Returns:
bool

Definition at line 776 of file oxarticle.php.

oxArticle.load ( oxID  ) 

Loads object data from DB (object data ID must be passed to method). Converts dates (oxarticle.oxarticles__oxinsert, oxarticle.oxarticles__oxtimestamp) to international format (oxutils.php oxUtilsDate.getInstance()->formatDBDate(...)). Returns true if article was loaded successfully.

Parameters:
string $oxID Article object ID
Returns:
bool

Definition at line 858 of file oxarticle.php.

oxArticle.loadAmountPriceInfo (  ) 

Returns list object with info about article price that depends on amount in basket. Takes data from oxprice2article table. Returns false if such info is not set.

Returns:
mixed

Definition at line 1088 of file oxarticle.php.

oxArticle.onChange ( sAction = null,
sOXID = null,
sParentID = null 
)

This function is triggered whenever article is saved or deleted or after the stock is changed. Originally we need to update the oxstock for possible article parent in case parent is not buyable Plus you may want to extend this function to update some extended information. Call oxArticle.onChange($sAction, $sOXID) with ID parameter as static method when changes are executed over SQL. (or use module class instead of oxArticle if such exists)

Parameters:
string $sAction Action constant
string $sOXID Article ID
string $sParentID Parent ID
Returns:
null

Definition at line 2186 of file oxarticle.php.

oxArticle.reduceStock ( dAmount,
blAllowNegativeStock = false 
)

reduce article stock. return the affected amount

Parameters:
double $dAmount amount to reduce
bool $blAllowNegativeStock are negative stocks allowed?
Returns:
double

Definition at line 1984 of file oxarticle.php.

oxArticle.resetParent (  ) 

Changes article variant to parent article

Returns:
null

Definition at line 2079 of file oxarticle.php.

oxArticle.resetRemindStatus (  ) 

Resets oxremindactive status. If remindActive status is 2, reminder is already sent.

Returns:
null

Definition at line 2826 of file oxarticle.php.

oxArticle.save (  ) 

Makes sure that image values (oxpic1 - oxpic12, oxthumb, oxicon) are only base name by striping any dir information and leave only original file name and, saves long description (oxArticle._saveArtLongDesc()) finally save the object using parent.save() method.

Returns:
bool

Definition at line 2052 of file oxarticle.php.

oxArticle.saveTags ( sTags  ) 

Saves article tags

Parameters:
string $sTags article tag
Returns:
bool

Definition at line 2609 of file oxarticle.php.

oxArticle.setArticleLongDesc ( sDesc,
sOrigValue = null 
)

Save article long description to oxartext table

Parameters:
string $sDesc description to set
string $sOrigValue base shop value, will be stored in oxField->orignalValue [optional]
Returns:
null

Definition at line 2378 of file oxarticle.php.

oxArticle.setArticleUser ( oUser  ) 

sets article user

Parameters:
oxUser $oUser user to set
Returns:
null

Definition at line 1872 of file oxarticle.php.

oxArticle.setBuyableState ( blBuyable = false  ) 

Sets product state - buyable or not

Parameters:
bool $blBuyable state - buyable or not (default false)
Returns:
null

Definition at line 2883 of file oxarticle.php.

oxArticle.setId ( sId = null  ) 

Sets object ID, additionally sets $this->oxarticles__oxnid field value

Parameters:
string $sId New ID
Returns:
null

Definition at line 480 of file oxarticle.php.

oxArticle.setItemKey ( sItemKey  ) 

Sets item key used with oxuserbasket

Parameters:
string $sItemKey Item key
Returns:
null

Definition at line 650 of file oxarticle.php.

oxArticle.setLinkType ( iType  ) 

Resets details link

Parameters:
int $iType type of link to load
Returns:
null

Definition at line 2494 of file oxarticle.php.

oxArticle.setLoadParentData ( blLoadParentData  ) 

A setter for $_blLoadParentData (whether article parent info should be laoded fully) class variable

Parameters:
bool $blLoadParentData Whether to load parent data
Returns:
null

Definition at line 720 of file oxarticle.php.

oxArticle.setNoVariantLoading ( blLoadVariants  ) 

Disables/enables variant loading

Parameters:
bool $blLoadVariants skip variant loading or not
Returns:
null

Definition at line 662 of file oxarticle.php.

oxArticle.setOnComparisonList ( blOnList  ) 

Set if article is inluded in comparison list

Parameters:
bool $blOnList Whether is article on the list
Returns:
null

Definition at line 708 of file oxarticle.php.

oxArticle.setPrice ( oxPrice oPrice  ) 

Sets the current oxPrice object

Parameters:
oxPrice $oPrice the new price object
Returns:
null

Definition at line 1772 of file oxarticle.php.

oxArticle.setRatingAverage ( iRating  ) 

Set product rating average

Parameters:
integer $iRating new rating value
Returns:
null

Definition at line 899 of file oxarticle.php.

oxArticle.setRatingCount ( iRatingCnt  ) 

Set product rating count

Parameters:
integer $iRatingCnt new rating count
Returns:
null

Definition at line 911 of file oxarticle.php.

oxArticle.setSelectlist ( aSelList  ) 

Sets selectlists of current product

Parameters:
array $aSelList selectlist
Returns:
object

Definition at line 2908 of file oxarticle.php.

oxArticle.setSkipAbPrice ( blSkipAbPrice = null  ) 

Set _blSkipAbPrice value. If is set to true, then "From price" is not calculated for this object.

Parameters:
bool $blSkipAbPrice Whether to skip "From" price loading
Returns:
null

Definition at line 732 of file oxarticle.php.

oxArticle.setSkipAssign ( blSkipAssign  ) 

Assign condition setter. In case article assignment is skipped ($_blSkipAssign = true), it does not perform additional

Parameters:
bool $blSkipAssign Whether to skip assign process for the article
Returns:
null

Definition at line 608 of file oxarticle.php.

oxArticle.skipDiscounts (  ) 

Checks if discount should be skipped for this article in basket. Returns true if yes.

Returns:
bool

Definition at line 1739 of file oxarticle.php.

oxArticle.updateSoldAmount ( dAmount = 0  ) 

Recursive function. Updates quantity of sold articles. Return true on success

Parameters:
double $dAmount Number of articles sold
Returns:
bool

Definition at line 2009 of file oxarticle.php.

oxArticle.updateVariantsRemind (  ) 

Updates article variants oxremindactive field, as variants inherit this setting from parent

Returns:
null

Definition at line 4015 of file oxarticle.php.


Member Data Documentation

oxArticle.$_aArticleCats = array() [static, protected]

Definition at line 333 of file oxarticle.php.

oxArticle.$_aArticleFiles = null [protected]

Definition at line 401 of file oxarticle.php.

oxArticle.$_aArticleManufacturers = array() [static, protected]

Definition at line 319 of file oxarticle.php.

oxArticle.$_aArticleVendors = array() [static, protected]

Definition at line 326 of file oxarticle.php.

oxArticle.$_aCategoryCache = null [static, protected]

Definition at line 389 of file oxarticle.php.

oxArticle.$_aCopyParentField [protected]
Initial value:
 array('oxarticles__oxnonmaterial',
                                         'oxarticles__oxfreeshipping',
                                         
                                         'oxarticles__oxisdownloadable')

Definition at line 351 of file oxarticle.php.

oxArticle.$_aDispSelList [protected]

Definition at line 211 of file oxarticle.php.

oxArticle.$_aLoadedParents [static, protected]

Definition at line 197 of file oxarticle.php.

oxArticle.$_aMediaUrls = null [protected]

Definition at line 190 of file oxarticle.php.

oxArticle.$_aNonCopyParentFields [protected]
Initial value:
 array('oxarticles__oxinsert',
                                             'oxarticles__oxtimestamp',
                                             'oxarticles__oxnid',
                                             'oxarticles__oxid',
                                             'oxarticles__oxparentid')

Definition at line 340 of file oxarticle.php.

oxArticle.$_aPersistParam = null [protected]

Definition at line 65 of file oxarticle.php.

oxArticle.$_aSelections = array() [static, protected]

Definition at line 383 of file oxarticle.php.

oxArticle.$_aSelList [static, protected]

Definition at line 204 of file oxarticle.php.

oxArticle.$_aSeoAddParams = array() [protected]

Definition at line 256 of file oxarticle.php.

oxArticle.$_aSeoUrls = array() [protected]

Definition at line 249 of file oxarticle.php.

oxArticle.$_aStdAddParams = array() [protected]

Definition at line 263 of file oxarticle.php.

oxArticle.$_aStdUrls = array() [protected]

Definition at line 242 of file oxarticle.php.

oxArticle.$_aVariants = null [protected]

Definition at line 87 of file oxarticle.php.

oxArticle.$_aVariantSelections = array() [protected]

Definition at line 377 of file oxarticle.php.

oxArticle.$_aVariantsWithNotOrderables = null [protected]

Definition at line 94 of file oxarticle.php.

oxArticle.$_blAllowEmptyParentId = false [protected]

Variable used to determine if setting parentId to empty value is allowed

Definition at line 157 of file oxarticle.php.

oxArticle.$_blCalcPrice = true [protected]

Definition at line 45 of file oxarticle.php.

oxArticle.$_blHasAmountPrice = null [static, protected]

Definition at line 395 of file oxarticle.php.

oxArticle.$_blHasMdVariants = false [protected]

$_blHasVariants is set to true if article has multidimensional variants.

Definition at line 115 of file oxarticle.php.

oxArticle.$_blHasVariants = false [protected]

$_blHasVariants is set to true if article has any variants.

Definition at line 110 of file oxarticle.php.

oxArticle.$_blIsOnComparisonList = false [protected]

Definition at line 121 of file oxarticle.php.

oxArticle.$_blIsRangePrice = false [protected]

Definition at line 183 of file oxarticle.php.

oxArticle.$_blIsSeoObject = true [protected]

Definition at line 218 of file oxarticle.php.

oxArticle.$_blLoadParentData = false [protected]

Variable used to force load parent data in export

Definition at line 152 of file oxarticle.php.

oxArticle.$_blLoadPrice = true [protected]

Definition at line 134 of file oxarticle.php.

oxArticle.$_blLoadVariants = true [protected]

Definition at line 80 of file oxarticle.php.

oxArticle.$_blNotBuyable = false [protected]

Definition at line 72 of file oxarticle.php.

oxArticle.$_blNotBuyableParent = false [protected]

Definition at line 104 of file oxarticle.php.

oxArticle.$_blSkipAbPrice = false [protected]

If $_blSkipAbPrice is set to true, then "From price" is not calculated for this object.

Definition at line 139 of file oxarticle.php.

oxArticle.$_blSkipAssign = false [protected]

Variable used to force load parent data in export

Definition at line 162 of file oxarticle.php.

oxArticle.$_blSkipDiscounts = null [protected]

Definition at line 169 of file oxarticle.php.

oxArticle.$_blUseLazyLoading = true [protected]

Definition at line 31 of file oxarticle.php.

oxArticle.$_dAmountPrice = null [protected]

Definition at line 312 of file oxarticle.php.

oxArticle.$_dArticleVat = null [protected]

Definition at line 58 of file oxarticle.php.

oxArticle.$_fPricePerUnit = null [protected]

$_fPricePerUnit holds price per unit value in active shop currency. $_fPricePerUnit is calculated from oxArticle.oxarticles__oxunitquantity->value and from oxArticle.oxarticles__oxuniname->value. If either one of these values is empty then $_fPricePerUnit is not calculated. Example: In case when product price is 10 EUR and product quantity is 0.5 (liters) then $_fPricePerUnit would be 20,00

Definition at line 147 of file oxarticle.php.

oxArticle.$_iLinkType = 0 [protected]

Definition at line 235 of file oxarticle.php.

oxArticle.$_iStockStatus = null [protected]

Definition at line 291 of file oxarticle.php.

oxArticle.$_oAmountPriceInfo = null [protected]

Definition at line 305 of file oxarticle.php.

oxArticle.$_oAmountPriceList = null [protected]

Definition at line 225 of file oxarticle.php.

oxArticle.$_oAttributeList = null [protected]

Object holding the list of attributes and attribute values associated with this article Attributes are loaded only when bl_perfLoadAttributes config option is set to true

Definition at line 175 of file oxarticle.php.

oxArticle.$_oLongDesc = null [protected]

Definition at line 368 of file oxarticle.php.

oxArticle.$_oMdVariants = null [protected]

Definition at line 361 of file oxarticle.php.

oxArticle.$_oPrice = null [protected]

Definition at line 51 of file oxarticle.php.

oxArticle.$_oTPrice = null [protected]

Definition at line 298 of file oxarticle.php.

oxArticle.$_oUser = null [protected]

Definition at line 127 of file oxarticle.php.

oxArticle.$_sClassName = 'oxarticle' [protected]

Definition at line 24 of file oxarticle.php.

oxArticle.$_sDynImageDir = null [protected]

Definition at line 270 of file oxarticle.php.

oxArticle.$_sItemKey [protected]

Definition at line 38 of file oxarticle.php.

oxArticle.$_sMoreDetailLink = null [protected]

Definition at line 277 of file oxarticle.php.

oxArticle.$_sToBasketLink = null [protected]

Definition at line 284 of file oxarticle.php.


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