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 631 of file oxbasketitem.php.
Does not return _oArticle var on serialisation
- Returns:
- array
Definition at line 643 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:
-
- Returns:
- null
Definition at line 671 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 |
- Returns:
- null
Definition at line 711 of file oxbasketitem.php.
oxBasketItem._setSelectList |
( |
$ |
aSelList |
) |
[protected] |
Stores item select lists ( oxbasketitem.aSelList )
- Parameters:
-
| array | $aSelList item select lists |
- Returns:
- null
Definition at line 734 of file oxbasketitem.php.
oxBasketItem.getAmount |
( |
|
) |
|
oxBasketItem.getArticle |
( |
$ |
blCheckProduct = false , |
|
|
$ |
sProductId = null , |
|
|
$ |
blDisableLazyLoading = false | |
|
) |
| | |
Retrieves the article .Throws an execption if article does not exist, is not buyable or visible.
- Parameters:
-
| bool | $blCheckProduct checks if product is buyable and visible |
| string | $sProductId product id |
| bool | $blDisableLazyLoading disable lazy loading |
- Exceptions:
-
- Returns:
- oxarticle
Definition at line 422 of file oxbasketitem.php.
oxBasketItem.getChosenSelList |
( |
|
) |
|
Returns user chosen select list information
- Returns:
- array
Definition at line 587 of file oxbasketitem.php.
oxBasketItem.getdBundledAmount |
( |
|
) |
|
oxBasketItem.getFRegularUnitPrice |
( |
|
) |
|
oxBasketItem.getFTotalPrice |
( |
|
) |
|
oxBasketItem.getFUnitPrice |
( |
|
) |
|
oxBasketItem.getIconUrl |
( |
|
) |
|
Returns article icon picture url
- Returns:
- string
Definition at line 401 of file oxbasketitem.php.
oxBasketItem.getLanguageId |
( |
|
) |
|
oxBasketItem.getPersParams |
( |
|
) |
|
Get persistent parameters ( oxbasketitem._aPersistentParameters )
- Returns:
- array
Definition at line 761 of file oxbasketitem.php.
oxBasketItem.getPrice |
( |
|
) |
|
oxBasketItem.getProductId |
( |
|
) |
|
oxBasketItem.getRegularUnitPrice |
( |
|
) |
|
oxBasketItem.getSelList |
( |
|
) |
|
Returns user passed select list information
- Returns:
- array
Definition at line 577 of file oxbasketitem.php.
oxBasketItem.getShopId |
( |
|
) |
|
Returns ID of shop from which this product was added into basket
- Returns:
- string
Definition at line 567 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 839 of file oxbasketitem.php.
oxBasketItem.getWrappingId |
( |
|
) |
|
Returns wrapping paper ID (if such was applied)
- Returns:
- string
Definition at line 829 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:
-
- Returns:
- null
Definition at line 249 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 |
- Returns:
- null
Definition at line 272 of file oxbasketitem.php.
oxBasketItem.isBundle |
( |
|
) |
|
Returns true if product is bundle
- Returns:
- bool
Definition at line 597 of file oxbasketitem.php.
oxBasketItem.isDiscountArticle |
( |
|
) |
|
Returns true if product is given as discount
- Returns:
- bool
Definition at line 607 of file oxbasketitem.php.
oxBasketItem.isSkipDiscount |
( |
|
) |
|
Returns true if discount must be skipped for current product
- Returns:
- bool
Definition at line 617 of file oxbasketitem.php.
oxBasketItem.setAmount |
( |
$ |
dAmount, |
|
|
$ |
blOverride = true , |
|
|
$ |
sItemKey = null | |
|
) |
| | |
Sets item amount and weight which depends on amount ( oxbasketitem.dAmount, oxbasketitem.dWeight )
- Parameters:
-
| double | $dAmount amount |
| bool | $blOverride overide current amoutn or not |
| string | $sItemKey item key |
- Exceptions:
-
- Returns:
- null
Definition at line 327 of file oxbasketitem.php.
oxBasketItem.setAsDiscountArticle |
( |
$ |
blIsDiscountArticle |
) |
|
Marks if item is discount bundle ( oxbasketitem._blIsDiscountArticle )
- Parameters:
-
| bool | $blIsDiscountArticle if item is discount bundle |
- Returns:
- null
Definition at line 288 of file oxbasketitem.php.
oxBasketItem.setBundle |
( |
$ |
blBundle |
) |
|
Marks if item is bundle ( oxbasketitem.blBundle )
- Parameters:
-
| bool | $blBundle if item is bundle |
- Returns:
- null
Definition at line 785 of file oxbasketitem.php.
oxBasketItem.setLanguageId |
( |
$ |
iLanguageId |
) |
|
Set language Id, reload basket content on language change.
- Parameters:
-
| integer | $iLanguageId language id |
- Returns:
- none
Definition at line 971 of file oxbasketitem.php.
oxBasketItem.setPersParams |
( |
$ |
aPersParam |
) |
|
Stores items persistent parameters ( oxbasketitem._aPersistentParameters )
- Parameters:
-
| array | $aPersParam items persistent parameters |
- Returns:
- null
Definition at line 773 of file oxbasketitem.php.
oxBasketItem.setPrice |
( |
$ |
oPrice |
) |
|
oxBasketItem.setRegularUnitPrice |
( |
$ |
oRegularUnitPrice |
) |
|
Set regular unit price
- Parameters:
-
| oxPrice | $oRegularUnitPrice regular price |
- Returns:
- null
Definition at line 225 of file oxbasketitem.php.
oxBasketItem.setSkipDiscounts |
( |
$ |
blSkip |
) |
|
Used to set "skip discounts" status for basket item
- Parameters:
-
| bool | $blSkip set true to skip discounts |
- Returns:
- null
Definition at line 797 of file oxbasketitem.php.
oxBasketItem.setStockCheckStatus |
( |
$ |
blStatus |
) |
|
Sets stock control mode
- Parameters:
-
| bool | $blStatus stock control mode |
- Returns:
- null
Definition at line 300 of file oxbasketitem.php.
oxBasketItem.setWishArticleId |
( |
$ |
sArticleId |
) |
|
Wish article Id setter
- Parameters:
-
| string | $sArticleId wish article id |
- Returns:
- null
Definition at line 878 of file oxbasketitem.php.
oxBasketItem.setWishId |
( |
$ |
sWishId |
) |
|
oxBasketItem.setWrapping |
( |
$ |
sWrapId |
) |
|
Product wrapping paper id setter
- Parameters:
-
| string | $sWrapId wrapping paper id |
- Returns:
- null
Definition at line 819 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: