OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Application\Model\UserBasketItem Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Application\Model\UserBasketItem:
+ Collaboration diagram for OxidEsales\EshopCommunity\Application\Model\UserBasketItem:

Public Member Functions

 __construct ()
 
 setVariantParentBuyable ($blBuyable=false)
 
 getArticle ($sItemKey)
 
 __sleep ()
 
 getSelList ()
 
 setSelList ($aSelList)
 
 getPersParams ()
 
 setPersParams ($sPersParams)
 

Protected Member Functions

 _setFieldData ($sFieldName, $sValue, $iDataType=\OxidEsales\Eshop\Core\Field::T_TEXT)
 

Protected Attributes

 $_sClassName = 'oxuserbasketitem'
 
 $_oArticle = null
 
 $_blParentBuyable = false
 
 $_aSelList = null
 
 $_aPersParam = null
 

Detailed Description

Shopping basket item manager. Manager class for shopping basket item (class may be overriden).

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::__construct ( )

Class constructor, initiates parent constructor (parent::oxBase()).

Member Function Documentation

◆ __sleep()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::__sleep ( )

Does not return _oArticle var on serialisation

Returns
array

◆ _setFieldData()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::_setFieldData (   $sFieldName,
  $sValue,
  $iDataType = \OxidEsales\Eshop\Core\Field::T_TEXT 
)
protected

Sets data field value

Parameters
string$sFieldNameindex OR name (eg. 'oxarticles__oxtitle') of a data field to set
string$sValuevalue of data field
int$iDataTypefield type
Returns
null

◆ getArticle()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::getArticle (   $sItemKey)

Loads and returns the article for that basket item

Parameters
string$sItemKeythe key that will be given to oxarticle setItemKey
Exceptions
oxArticleExceptionarticle exception
Returns
oxArticle

◆ getPersParams()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::getPersParams ( )

Basket item persistent parameters getter

Returns
array

◆ getSelList()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::getSelList ( )

Basket item selection list getter

Returns
array

◆ setPersParams()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::setPersParams (   $sPersParams)

Basket item persistent parameters setter

Parameters
string$sPersParamspersistent parameters

◆ setSelList()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::setSelList (   $aSelList)

Basket item selection list setter

Parameters
array$aSelListselection list

◆ setVariantParentBuyable()

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::setVariantParentBuyable (   $blBuyable = false)

Variant parent "buyable" status setter

Parameters
bool$blBuyableparent "buyable" status

Member Data Documentation

◆ $_aPersParam

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::$_aPersParam = null
protected

◆ $_aSelList

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::$_aSelList = null
protected

◆ $_blParentBuyable

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::$_blParentBuyable = false
protected

◆ $_oArticle

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::$_oArticle = null
protected

◆ $_sClassName

OxidEsales\EshopCommunity\Application\Model\UserBasketItem::$_sClassName = 'oxuserbasketitem'
protected

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