Public Member Functions | Protected Member Functions | Protected Attributes

oxBasketItem Class Reference

Inheritance diagram for oxBasketItem:
Collaboration diagram for oxBasketItem:

List of all members.

Public Member Functions

 getRegularUnitPrice ()
 setRegularUnitPrice ($oRegularUnitPrice)
 init ($sProductID, $dAmount, $aSel=null, $aPersParam=null, $blBundle=null)
 initFromOrderArticle ($oOrderArticle)
 setAsDiscountArticle ($blIsDiscountArticle)
 setStockCheckStatus ($blStatus)
 getStockCheckStatus ()
 setPrice ($oPrice)
 getIconUrl ()
 getdBundledAmount ()
 getPrice ()
 getUnitPrice ()
 getAmount ()
 getWeight ()
 getTitle ()
 getLink ()
 getShopId ()
 getSelList ()
 getChosenSelList ()
 isBundle ()
 isDiscountArticle ()
 isSkipDiscount ()
 __get ($sName)
 __sleep ()
 getPersParams ()
 setPersParams ($aPersParam)
 setBundle ($blBundle)
 setSkipDiscounts ($blSkip)
 getProductId ()
 setWrapping ($sWrapId)
 getWrappingId ()
 getWrapping ()
 getWishId ()
 setWishId ($sWishId)
 setWishArticleId ($sArticleId)
 getWishArticleId ()
 getFRegularUnitPrice ()
 getFUnitPrice ()
 getFTotalPrice ()
 getVatPercent ()
 getVarSelect ()
 getLanguageId ()
 setLanguageId ($iLanguageId)

Protected Member Functions

 _setArticle ($sProductId)
 _setFromOrderArticle ($oOrderArticle)
 _setSelectList ($aSelList)

Protected Attributes

 $_sProductId = null
 $_sTitle = null
 $_sVarSelect = null
 $_sIcon = null
 $_sLink = null
 $_oPrice = null
 $_oUnitPrice = null
 $_dAmount = 0.0
 $_dWeight = 0
 $_aSelList = array()
 $_sShopId = null
 $_sNativeShopId = null
 $_blSkipDiscounts = false
 $_aPersistentParameters = array()
 $_blBundle = false
 $_blIsDiscountArticle = false
 $_oArticle = null
 $_sDimageDirNoSsl = null
 $_sDimageDirSsl = null
 $_aChosenSelectlist = array()
 $_sWrappingId = null
 $_sWishId = null
 $_sWishArticleId = null
 $_blCheckArticleStock = true
 $_iLanguageId = null
 $_blSsl = null
 $_sIconUrl = null
 $_oRegularUnitPrice = null

Detailed Description

UserBasketItem class, responsible for storing most important fields

Definition at line 7 of file oxbasketitem.php.


Member Function Documentation

oxBasketItem.__get ( sName  ) 

Special getter function for backwards compatibility. Executes methods by rule "get".$sVariableName and returns result processed by executed function.

Parameters:
string $sName parameter name
Returns:
mixed

Definition at line 627 of file oxbasketitem.php.

oxBasketItem.__sleep (  ) 

Does not return _oArticle var on serialisation

Returns:
array

Definition at line 639 of file oxbasketitem.php.

oxBasketItem._setArticle ( sProductId  )  [protected]

Assigns general product parameters to oxbasketitem object :

  • sProduct - oxarticle object ID;
  • title - products title;
  • icon - icon name;
  • link - details URL's;
  • sShopId - current shop ID;
  • sNativeShopId - article shop ID;
  • _sDimageDirNoSsl - NON SSL mode image path;
  • _sDimageDirSsl - SSL mode image path;
Parameters:
string $sProductId product id
Exceptions:
oxNoArticleException exception

Definition at line 666 of file oxbasketitem.php.

oxBasketItem._setFromOrderArticle ( oOrderArticle  )  [protected]

Assigns general product parameters to oxbasketitem object:

  • sProduct - oxarticle object ID;
  • title - products title;
  • sShopId - current shop ID;
  • sNativeShopId - article shop ID;
Parameters:
oxorderarticle $oOrderArticle order article

Definition at line 704 of file oxbasketitem.php.

oxBasketItem._setSelectList ( aSelList  )  [protected]

Stores item select lists ( oxbasketitem.aSelList )

Parameters:
array $aSelList item select lists

Definition at line 725 of file oxbasketitem.php.

oxBasketItem.getAmount (  ) 

Returns the amount of item.

Returns:
double

Definition at line 509 of file oxbasketitem.php.

oxBasketItem.getChosenSelList (  ) 

Returns user chosen select list information

Returns:
array

Definition at line 583 of file oxbasketitem.php.

oxBasketItem.getdBundledAmount (  ) 

Returns bundle amount

Returns:
double

Definition at line 479 of file oxbasketitem.php.

oxBasketItem.getFRegularUnitPrice (  ) 

Returns formatted regular unit price

Deprecated:
in v4.8/5.1 on 2013-10-08; use oxPrice smarty formatter
Returns:
string

Definition at line 880 of file oxbasketitem.php.

oxBasketItem.getFTotalPrice (  ) 

Returns formatted total price

Deprecated:
in v4.8/5.1 on 2013-10-08; use oxPrice smarty formatter
Returns:
string

Definition at line 904 of file oxbasketitem.php.

oxBasketItem.getFUnitPrice (  ) 

Returns formatted unit price

Deprecated:
in v4.8/5.1 on 2013-10-08; use oxPrice smarty formatter
Returns:
string

Definition at line 892 of file oxbasketitem.php.

oxBasketItem.getIconUrl (  ) 

Returns article icon picture url

Returns:
string

Definition at line 390 of file oxbasketitem.php.

oxBasketItem.getLanguageId (  ) 

Get language id

Returns:
integer

Definition at line 939 of file oxbasketitem.php.

oxBasketItem.getLink (  ) 

Returns product details URL

Returns:
string

Definition at line 549 of file oxbasketitem.php.

oxBasketItem.getPersParams (  ) 

Get persistent parameters ( oxbasketitem._aPersistentParameters )

Returns:
array

Definition at line 752 of file oxbasketitem.php.

oxBasketItem.getPrice (  ) 

Returns the price.

Returns:
oxprice

Definition at line 489 of file oxbasketitem.php.

oxBasketItem.getProductId (  ) 

Returns product Id

Returns:
string product id

Definition at line 792 of file oxbasketitem.php.

oxBasketItem.getRegularUnitPrice (  ) 

Return regular unit price

Returns:
oxPrice

Definition at line 214 of file oxbasketitem.php.

oxBasketItem.getSelList (  ) 

Returns user passed select list information

Returns:
array

Definition at line 573 of file oxbasketitem.php.

oxBasketItem.getShopId (  ) 

Returns ID of shop from which this product was added into basket

Returns:
string

Definition at line 563 of file oxbasketitem.php.

oxBasketItem.getStockCheckStatus (  ) 

Returns stock control mode

Returns:
bool

Definition at line 301 of file oxbasketitem.php.

oxBasketItem.getTitle (  ) 

Returns product title

Returns:
string

Definition at line 529 of file oxbasketitem.php.

oxBasketItem.getUnitPrice (  ) 

Returns the price.

Returns:
oxprice

Definition at line 499 of file oxbasketitem.php.

oxBasketItem.getVarSelect (  ) 

Returns varselect value

Returns:
string

Definition at line 924 of file oxbasketitem.php.

oxBasketItem.getVatPercent (  ) 

Returns formatted total price

Returns:
string

Definition at line 914 of file oxbasketitem.php.

oxBasketItem.getWeight (  ) 

returns the total weight.

Returns:
double

Definition at line 519 of file oxbasketitem.php.

oxBasketItem.getWishArticleId (  ) 

Returns wish article Id

Returns:
string

Definition at line 868 of file oxbasketitem.php.

oxBasketItem.getWishId (  ) 

Returns wishlist user Id

Returns:
string

Definition at line 838 of file oxbasketitem.php.

oxBasketItem.getWrapping (  ) 

Returns basket item wrapping object

Returns:
oxwrapping

Definition at line 822 of file oxbasketitem.php.

oxBasketItem.getWrappingId (  ) 

Returns wrapping paper ID (if such was applied)

Returns:
string

Definition at line 812 of file oxbasketitem.php.

oxBasketItem.init ( sProductID,
dAmount,
aSel = null,
aPersParam = null,
blBundle = null 
)

Assigns basic params to basket item

  • oxbasketitem._setArticle();
  • oxbasketitem.setAmount();
  • oxbasketitem._setSelectList();
  • oxbasketitem.setPersParams();
  • oxbasketitem.setBundle().
Parameters:
string $sProductID product id
double $dAmount amount
array $aSel selection
array $aPersParam persistent params
bool $blBundle bundle
Exceptions:
oxNoArticleException,oxOutOfStockException,oxArticleInputException 

Definition at line 246 of file oxbasketitem.php.

oxBasketItem.initFromOrderArticle ( oOrderArticle  ) 

Initializes basket item from oxorderarticle object

  • oxbasketitem._setFromOrderArticle() - assigns $oOrderArticle parameter to oxBasketItem._oArticle. Thus oxOrderArticle is used as oxArticle (calls standard methods implemented by oxIArticle interface);
  • oxbasketitem.setAmount();
  • oxbasketitem._setSelectList();
  • oxbasketitem.setPersParams().
Parameters:
oxorderarticle $oOrderArticle order article to load info from

Definition at line 267 of file oxbasketitem.php.

oxBasketItem.isBundle (  ) 

Returns true if product is bundle

Returns:
bool

Definition at line 593 of file oxbasketitem.php.

oxBasketItem.isDiscountArticle (  ) 

Returns true if product is given as discount

Returns:
bool

Definition at line 603 of file oxbasketitem.php.

oxBasketItem.isSkipDiscount (  ) 

Returns true if discount must be skipped for current product

Returns:
bool

Definition at line 613 of file oxbasketitem.php.

oxBasketItem.setAsDiscountArticle ( blIsDiscountArticle  ) 

Marks if item is discount bundle ( oxbasketitem._blIsDiscountArticle )

Parameters:
bool $blIsDiscountArticle if item is discount bundle

Definition at line 281 of file oxbasketitem.php.

oxBasketItem.setBundle ( blBundle  ) 

Marks if item is bundle ( oxbasketitem.blBundle )

Parameters:
bool $blBundle if item is bundle

Definition at line 772 of file oxbasketitem.php.

oxBasketItem.setLanguageId ( iLanguageId  ) 

Set language Id, reload basket content on language change.

Parameters:
integer $iLanguageId language id

Definition at line 949 of file oxbasketitem.php.

oxBasketItem.setPersParams ( aPersParam  ) 

Stores items persistent parameters ( oxbasketitem._aPersistentParameters )

Parameters:
array $aPersParam items persistent parameters

Definition at line 762 of file oxbasketitem.php.

oxBasketItem.setPrice ( oPrice  ) 

Sets $this->_oPrice

Parameters:
object $oPrice price

Definition at line 377 of file oxbasketitem.php.

oxBasketItem.setRegularUnitPrice ( oRegularUnitPrice  ) 

Set regular unit price

Parameters:
oxPrice $oRegularUnitPrice regular price

Definition at line 224 of file oxbasketitem.php.

oxBasketItem.setSkipDiscounts ( blSkip  ) 

Used to set "skip discounts" status for basket item

Parameters:
bool $blSkip set true to skip discounts

Definition at line 782 of file oxbasketitem.php.

oxBasketItem.setStockCheckStatus ( blStatus  ) 

Sets stock control mode

Parameters:
bool $blStatus stock control mode

Definition at line 291 of file oxbasketitem.php.

oxBasketItem.setWishArticleId ( sArticleId  ) 

Wish article Id setter

Parameters:
string $sArticleId wish article id

Definition at line 858 of file oxbasketitem.php.

oxBasketItem.setWishId ( sWishId  ) 

Wish user id setter

Parameters:
string $sWishId user id

Definition at line 848 of file oxbasketitem.php.

oxBasketItem.setWrapping ( sWrapId  ) 

Product wrapping paper id setter

Parameters:
string $sWrapId wrapping paper id

Definition at line 802 of file oxbasketitem.php.


Member Data Documentation

oxBasketItem.$_aChosenSelectlist = array() [protected]

Definition at line 148 of file oxbasketitem.php.

oxBasketItem.$_aPersistentParameters = array() [protected]

Definition at line 106 of file oxbasketitem.php.

oxBasketItem.$_aSelList = array() [protected]

Definition at line 78 of file oxbasketitem.php.

oxBasketItem.$_blBundle = false [protected]

Definition at line 113 of file oxbasketitem.php.

oxBasketItem.$_blCheckArticleStock = true [protected]

Definition at line 176 of file oxbasketitem.php.

oxBasketItem.$_blIsDiscountArticle = false [protected]

Definition at line 120 of file oxbasketitem.php.

oxBasketItem.$_blSkipDiscounts = false [protected]

Definition at line 99 of file oxbasketitem.php.

oxBasketItem.$_blSsl = null [protected]

Definition at line 191 of file oxbasketitem.php.

oxBasketItem.$_dAmount = 0.0 [protected]

Definition at line 64 of file oxbasketitem.php.

oxBasketItem.$_dWeight = 0 [protected]

Definition at line 71 of file oxbasketitem.php.

oxBasketItem.$_iLanguageId = null [protected]

Definition at line 184 of file oxbasketitem.php.

oxBasketItem.$_oArticle = null [protected]

Definition at line 127 of file oxbasketitem.php.

oxBasketItem.$_oPrice = null [protected]

Definition at line 50 of file oxbasketitem.php.

oxBasketItem.$_oRegularUnitPrice = null [protected]

Definition at line 206 of file oxbasketitem.php.

oxBasketItem.$_oUnitPrice = null [protected]

Definition at line 57 of file oxbasketitem.php.

oxBasketItem.$_sDimageDirNoSsl = null [protected]

Definition at line 134 of file oxbasketitem.php.

oxBasketItem.$_sDimageDirSsl = null [protected]

Definition at line 141 of file oxbasketitem.php.

oxBasketItem.$_sIcon = null [protected]

Definition at line 36 of file oxbasketitem.php.

oxBasketItem.$_sIconUrl = null [protected]

Definition at line 198 of file oxbasketitem.php.

oxBasketItem.$_sLink = null [protected]

Definition at line 43 of file oxbasketitem.php.

oxBasketItem.$_sNativeShopId = null [protected]

Definition at line 92 of file oxbasketitem.php.

oxBasketItem.$_sProductId = null [protected]

Definition at line 15 of file oxbasketitem.php.

oxBasketItem.$_sShopId = null [protected]

Definition at line 85 of file oxbasketitem.php.

oxBasketItem.$_sTitle = null [protected]

Definition at line 22 of file oxbasketitem.php.

oxBasketItem.$_sVarSelect = null [protected]

Definition at line 29 of file oxbasketitem.php.

oxBasketItem.$_sWishArticleId = null [protected]

Definition at line 169 of file oxbasketitem.php.

oxBasketItem.$_sWishId = null [protected]

Definition at line 162 of file oxbasketitem.php.

oxBasketItem.$_sWrappingId = null [protected]

Definition at line 155 of file oxbasketitem.php.


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