List of all members.
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.
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:
-
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 |
( |
|
) |
|
oxBasketItem.getChosenSelList |
( |
|
) |
|
Returns user chosen select list information
- Returns:
- array
Definition at line 583 of file oxbasketitem.php.
oxBasketItem.getdBundledAmount |
( |
|
) |
|
oxBasketItem.getFRegularUnitPrice |
( |
|
) |
|
oxBasketItem.getFTotalPrice |
( |
|
) |
|
oxBasketItem.getFUnitPrice |
( |
|
) |
|
oxBasketItem.getIconUrl |
( |
|
) |
|
Returns article icon picture url
- Returns:
- string
Definition at line 390 of file oxbasketitem.php.
oxBasketItem.getLanguageId |
( |
|
) |
|
oxBasketItem.getPersParams |
( |
|
) |
|
Get persistent parameters ( oxbasketitem._aPersistentParameters )
- Returns:
- array
Definition at line 752 of file oxbasketitem.php.
oxBasketItem.getPrice |
( |
|
) |
|
oxBasketItem.getProductId |
( |
|
) |
|
oxBasketItem.getRegularUnitPrice |
( |
|
) |
|
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 |
( |
|
) |
|
oxBasketItem.getTitle |
( |
|
) |
|
oxBasketItem.getUnitPrice |
( |
|
) |
|
oxBasketItem.getVarSelect |
( |
|
) |
|
oxBasketItem.getVatPercent |
( |
|
) |
|
oxBasketItem.getWeight |
( |
|
) |
|
oxBasketItem.getWishArticleId |
( |
|
) |
|
oxBasketItem.getWishId |
( |
|
) |
|
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:
-
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 |
) |
|
oxBasketItem.setRegularUnitPrice |
( |
$ |
oRegularUnitPrice |
) |
|
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 |
) |
|
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] |
oxBasketItem.$_aPersistentParameters = array() [protected] |
oxBasketItem.$_aSelList = array() [protected] |
oxBasketItem.$_blBundle = false [protected] |
oxBasketItem.$_blCheckArticleStock = true [protected] |
oxBasketItem.$_blIsDiscountArticle = false [protected] |
oxBasketItem.$_blSkipDiscounts = false [protected] |
oxBasketItem.$_blSsl = null [protected] |
oxBasketItem.$_dAmount = 0.0 [protected] |
oxBasketItem.$_dWeight = 0 [protected] |
oxBasketItem.$_iLanguageId = null [protected] |
oxBasketItem.$_oArticle = null [protected] |
oxBasketItem.$_oPrice = null [protected] |
oxBasketItem.$_oRegularUnitPrice = null [protected] |
oxBasketItem.$_oUnitPrice = null [protected] |
oxBasketItem.$_sDimageDirNoSsl = null [protected] |
oxBasketItem.$_sDimageDirSsl = null [protected] |
oxBasketItem.$_sIcon = null [protected] |
oxBasketItem.$_sIconUrl = null [protected] |
oxBasketItem.$_sLink = null [protected] |
oxBasketItem.$_sNativeShopId = null [protected] |
oxBasketItem.$_sProductId = null [protected] |
oxBasketItem.$_sShopId = null [protected] |
oxBasketItem.$_sTitle = null [protected] |
oxBasketItem.$_sVarSelect = null [protected] |
oxBasketItem.$_sWishArticleId = null [protected] |
oxBasketItem.$_sWishId = null [protected] |
oxBasketItem.$_sWrappingId = null [protected] |
The documentation for this class was generated from the following file: