oxBasketItem Class Reference
List of all members.
Detailed Description
UserBasketItem class, responsible for storing most important fields
Definition at line 6 of file oxbasketitem.php.
Member Function Documentation
oxBasketItem.__get |
( |
$ |
sName |
) |
|
Special getter function for backwards compatability. Executes methods by rule "get".$sVariableName and returns result processed by executed function.
- Parameters:
-
| string | $sName parameter name |
- Returns:
- mixed
Definition at line 593 of file oxbasketitem.php.
Does not return _oArticle var on serialisation
- Returns:
- array
Definition at line 605 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 725 of file oxbasketitem.php.
oxBasketItem._setDeprecatedValues |
( |
|
) |
[protected] |
Sets object deprecated values
- Deprecated:
- This method is deprecated as all deprecated values are
- Returns:
- null
Definition at line 623 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 763 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 786 of file oxbasketitem.php.
oxBasketItem.getAmount |
( |
|
) |
|
oxBasketItem.getArticle |
( |
$ |
blCheckProduct = true , |
|
|
$ |
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 387 of file oxbasketitem.php.
oxBasketItem.getChosenSelList |
( |
|
) |
|
Returns user chosen select list information
- Returns:
- array
Definition at line 549 of file oxbasketitem.php.
oxBasketItem.getdBundledAmount |
( |
|
) |
|
oxBasketItem.getFTotalPrice |
( |
|
) |
|
oxBasketItem.getFUnitPrice |
( |
|
) |
|
oxBasketItem.getIconUrl |
( |
|
) |
|
Returns article icon picture url
- Returns:
- string
Definition at line 368 of file oxbasketitem.php.
oxBasketItem.getImageUrl |
( |
|
) |
|
Getter which returns image path according to SSL mode
- Returns:
- string
Definition at line 353 of file oxbasketitem.php.
oxBasketItem.getPersParams |
( |
|
) |
|
Get persistent parameters ( oxbasketitem._aPersistentParameters )
- Returns:
- array
Definition at line 813 of file oxbasketitem.php.
oxBasketItem.getPrice |
( |
|
) |
|
oxBasketItem.getProductId |
( |
|
) |
|
oxBasketItem.getSelList |
( |
|
) |
|
Returns user passed select list information
- Returns:
- array
Definition at line 539 of file oxbasketitem.php.
oxBasketItem.getShopId |
( |
|
) |
|
Returns ID of shop from which this product was added into basket
- Returns:
- string
Definition at line 529 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 891 of file oxbasketitem.php.
oxBasketItem.getWrappingId |
( |
|
) |
|
Returns wrapping paper ID (if such was applied)
- Returns:
- string
Definition at line 881 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 194 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 216 of file oxbasketitem.php.
oxBasketItem.isBundle |
( |
|
) |
|
Returns true if product is bundle
- Returns:
- bool
Definition at line 559 of file oxbasketitem.php.
oxBasketItem.isDiscountArticle |
( |
|
) |
|
Returns true if product is given as discount
- Returns:
- bool
Definition at line 569 of file oxbasketitem.php.
oxBasketItem.isSkipDiscount |
( |
|
) |
|
Returns true if discount must be skipped for current product
- Returns:
- bool
Definition at line 579 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 270 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 231 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 837 of file oxbasketitem.php.
oxBasketItem.setPersParams |
( |
$ |
aPersParam |
) |
|
Stores items persistent parameters ( oxbasketitem._aPersistentParameters )
- Parameters:
-
| array | $aPersParam items persistent parameters |
- Returns:
- null
Definition at line 825 of file oxbasketitem.php.
oxBasketItem.setPrice |
( |
$ |
oPrice |
) |
|
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 849 of file oxbasketitem.php.
oxBasketItem.setStockCheckStatus |
( |
$ |
blStatus |
) |
|
Sets stock control mode
- Parameters:
-
| bool | $blStatus stock control mode |
- Returns:
- null
Definition at line 243 of file oxbasketitem.php.
oxBasketItem.setWishArticleId |
( |
$ |
sArticleId |
) |
|
Wish article Id setter
- Parameters:
-
| string | $sArticleId wish article id |
- Returns:
- null
Definition at line 930 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 871 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.$_dAmount = 0.0 [protected] |
oxBasketItem.$_dWeight = 0 [protected] |
oxBasketItem.$_oArticle = null [protected] |
oxBasketItem.$_oPrice = null [protected] |
oxBasketItem.$_oUnitPrice = null [protected] |
oxBasketItem.$_sDimageDirNoSsl = null [protected] |
oxBasketItem.$_sDimageDirSsl = null [protected] |
oxBasketItem.$_sIcon = 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: