

Definition at line 7 of file oxorderarticle.php.
Public Member Functions | |
| __construct () | |
| copyThis ($oProduct) | |
| assign ($dbRecord) | |
| updateArticleStock ($dAddAmount=null, $blAllowNegativeStock=null) | |
| getPersParams () | |
| setPersParams ($aParams) | |
| loadInLang ($iLanguage, $sOxid) | |
| getProductId () | |
| getProductParentId () | |
| checkForStock ($dAmount) | |
| getSelectLists ($sKeyPrefix=null) | |
| getOrderArticleSelectList ($sArtId=null, $sOrderArtSelList=null) | |
| getBasketPrice ($dAmount, $aSelList, $oBasket) | |
| skipDiscounts () | |
| getCategoryIds ($blActCats=false, $blSkipCache=false) | |
| getLanguage () | |
| getBasePrice ($dAmount=1) | |
| getPrice () | |
| setIsNewOrderItem ($blIsNew) | |
| isNewOrderItem () | |
| setNewAmount ($iNewAmount) | |
| isOrderArticle () | |
| cancelOrderArticle () | |
| delete ($sOXID=null) | |
| save () | |
Public Attributes | |
| $aStatuses = null | |
| $aPersParam = null | |
| $ftotbrutprice = null | |
| $fbrutprice = null | |
| $fnetprice = null | |
Protected Member Functions | |
| _getArtStock ($dAddAmount=null, $blAllowNegativeStock=null) | |
| _setDeprecatedValues () | |
| _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT) | |
| _setArticleParams () | |
| _getOrderArticle ($sArticleId=null) | |
Protected Attributes | |
| $_sClassName = 'oxorderarticle' | |
| $_aPersParam = null | |
| $_aStatuses = null | |
| $_aOrderArticleSelList = null | |
| $_oOrderArticle = null | |
| $_blIsNewOrderItem = false | |
| oxOrderArticle.__construct | ( | ) |
Class constructor, initiates class constructor (parent.oxbase()).
Reimplemented from oxBase.
Definition at line 99 of file oxorderarticle.php.
| oxOrderArticle.copyThis | ( | $ | oProduct | ) |
Copies passed to method product into $this.
| object | $oProduct product to copy |
Definition at line 112 of file oxorderarticle.php.
| oxOrderArticle.assign | ( | $ | dbRecord | ) |
Assigns DB field values to object fields.
| string | $dbRecord DB record |
Reimplemented from oxBase.
Definition at line 132 of file oxorderarticle.php.
| oxOrderArticle.updateArticleStock | ( | $ | dAddAmount = null, |
|
| $ | blAllowNegativeStock = null | |||
| ) |
Performs stock modification for current order article. Additionally executes changeable article onChange/updateSoldAmount methods to update chained data
| double | $dAddAmount amount which will be substracled from value in db | |
| bool | $blAllowNegativeStock amount allow or not negative stock value |
Definition at line 149 of file oxorderarticle.php.
| oxOrderArticle._getArtStock | ( | $ | dAddAmount = null, |
|
| $ | blAllowNegativeStock = null | |||
| ) | [protected] |
Adds or substracts defined amount passed by param from arcticle stock
| double | $dAddAmount amount which will be added/substracled from value in db | |
| bool | $blAllowNegativeStock allow/disallow negative stock value |
Definition at line 177 of file oxorderarticle.php.
| oxOrderArticle.getPersParams | ( | ) |
| oxOrderArticle.setPersParams | ( | $ | aParams | ) |
Order persistent params setter
| array | $aParams array of params |
Definition at line 221 of file oxorderarticle.php.
| oxOrderArticle._setDeprecatedValues | ( | ) | [protected] |
Sets deprecate values
Definition at line 236 of file oxorderarticle.php.
| oxOrderArticle._setFieldData | ( | $ | sFieldName, | |
| $ | sValue, | |||
| $ | iDataType = oxField::T_TEXT | |||
| ) | [protected] |
Sets data field value
| string | $sFieldName index OR name (eg. 'oxarticles__oxtitle') of a data field to set | |
| string | $sValue value of data field | |
| int | $iDataType field type |
Reimplemented from oxBase.
Definition at line 258 of file oxorderarticle.php.
| oxOrderArticle.loadInLang | ( | $ | iLanguage, | |
| $ | sOxid | |||
| ) |
Executes oxOrderArticle.load() and returns its result
| int | $iLanguage language id | |
| string | $sOxid order article id |
Definition at line 282 of file oxorderarticle.php.
| oxOrderArticle.getProductId | ( | ) |
Returns ordered article id, implements iBaseArticle interface getter method
Implements oxIArticle.
Definition at line 292 of file oxorderarticle.php.
| oxOrderArticle.getProductParentId | ( | ) |
Returns product parent id (oxparentid)
Implements oxIArticle.
Definition at line 302 of file oxorderarticle.php.
| oxOrderArticle._setArticleParams | ( | ) | [protected] |
Sets article parameters to current object, so this object can be used for basket calculation
Definition at line 321 of file oxorderarticle.php.
| oxOrderArticle.checkForStock | ( | $ | dAmount | ) |
Returns true, implements iBaseArticle interface method
| double | $dAmount stock to check |
Implements oxIArticle.
Definition at line 365 of file oxorderarticle.php.
| oxOrderArticle._getOrderArticle | ( | $ | sArticleId = null |
) | [protected] |
Loads, caches and returns real order article instance. If article is not available (deleted from db or so) false is returned
| string | $sArticleId article id (optional, is not passed oxorderarticles__oxartid will be used) |
Definition at line 378 of file oxorderarticle.php.
| oxOrderArticle.getSelectLists | ( | $ | sKeyPrefix = null |
) |
Returns article select lists, implements iBaseArticle interface method
| string | $sKeyPrefix prefix (not used) |
Implements oxIArticle.
Definition at line 399 of file oxorderarticle.php.
| oxOrderArticle.getOrderArticleSelectList | ( | $ | sArtId = null, |
|
| $ | sOrderArtSelList = null | |||
| ) |
Returns order article selection list array
| string | $sArtId ordered article id [optional] | |
| string | $sOrderArtSelList order article selection list [optional] |
Definition at line 416 of file oxorderarticle.php.
| oxOrderArticle.getBasketPrice | ( | $ | dAmount, | |
| $ | aSelList, | |||
| $ | oBasket | |||
| ) |
Returns basket order article price
| double | $dAmount basket item amount | |
| array | $aSelList chosen selection list | |
| oxbasket | $oBasket basket |
Implements oxIArticle.
Definition at line 482 of file oxorderarticle.php.
| oxOrderArticle.skipDiscounts | ( | ) |
Returns false, implements iBaseArticle interface method
Implements oxIArticle.
Definition at line 492 of file oxorderarticle.php.
Returns empty array, implements iBaseArticle interface getter method
| bool | $blActCats select categories if all parents are active | |
| bool | $blSkipCache force reload or not (default false - no reload) |
Implements oxIArticle.
Definition at line 505 of file oxorderarticle.php.
| oxOrderArticle.getLanguage | ( | ) |
| oxOrderArticle.getBasePrice | ( | $ | dAmount = 1 |
) |
Returns base article price from database
| double | $dAmount article amount. Default is 1 |
Implements oxIArticle.
Definition at line 531 of file oxorderarticle.php.
| oxOrderArticle.getPrice | ( | ) |
Returns order article unit price
Implements oxIArticle.
Definition at line 541 of file oxorderarticle.php.
| oxOrderArticle.setIsNewOrderItem | ( | $ | blIsNew | ) |
Marks object as new order item (this marker useful when recalculating stocks after order recalculation)
| bool | $blIsNew marker value - TRUE if this item is newy added to order |
Definition at line 559 of file oxorderarticle.php.
| oxOrderArticle.isNewOrderItem | ( | ) |
Returns TRUE if current order article is newly added to order
Definition at line 569 of file oxorderarticle.php.
| oxOrderArticle.setNewAmount | ( | $ | iNewAmount | ) |
Ordered article stock setter. Before setting new stock value additionally checks for original article stock value. Is stock values <= preferred, adjusts order stock according to it
| int | $iNewAmount new ordered items amount |
Definition at line 583 of file oxorderarticle.php.
| oxOrderArticle.isOrderArticle | ( | ) |
Returns true if object is derived from oxorderarticle class
Implements oxIArticle.
Definition at line 613 of file oxorderarticle.php.
| oxOrderArticle.cancelOrderArticle | ( | ) |
Sets order article storno value to 1 and if stock control is on - restores previous oxarticle stock state
Definition at line 625 of file oxorderarticle.php.
| oxOrderArticle.delete | ( | $ | sOXID = null |
) |
Deletes order article object. If deletion succeded - updates article stock information. Returns deletion status
Reimplemented from oxBase.
Definition at line 642 of file oxorderarticle.php.
| oxOrderArticle.save | ( | ) |
Saves order article object. If saving succeded - updates article stock information if oxOrderArticle.isNewOrderItem() returns TRUE. Returns saving status
Reimplemented from oxBase.
Definition at line 660 of file oxorderarticle.php.
oxOrderArticle.$_sClassName = 'oxorderarticle' [protected] |
oxOrderArticle.$_aPersParam = null [protected] |
Definition at line 21 of file oxorderarticle.php.
oxOrderArticle.$_aStatuses = null [protected] |
Definition at line 28 of file oxorderarticle.php.
| oxOrderArticle.$aStatuses = null |
Definition at line 37 of file oxorderarticle.php.
| oxOrderArticle.$aPersParam = null |
Definition at line 46 of file oxorderarticle.php.
| oxOrderArticle.$ftotbrutprice = null |
Definition at line 55 of file oxorderarticle.php.
| oxOrderArticle.$fbrutprice = null |
Definition at line 64 of file oxorderarticle.php.
| oxOrderArticle.$fnetprice = null |
Definition at line 73 of file oxorderarticle.php.
oxOrderArticle.$_aOrderArticleSelList = null [protected] |
Definition at line 80 of file oxorderarticle.php.
oxOrderArticle.$_oOrderArticle = null [protected] |
Definition at line 87 of file oxorderarticle.php.
oxOrderArticle.$_blIsNewOrderItem = false [protected] |
Definition at line 94 of file oxorderarticle.php.
1.5.5