Definition at line 7 of file oxorderarticle.php.
Public Member Functions | |
__construct () | |
copyThis ($oProduct) | |
assign ($dbRecord) | |
updateArticleStock ($dAddAmount=null, $blAllowNegativeStock=null) | |
getPersParams () | |
setPersParams ($aParams) | |
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) | |
Protected Attributes | |
$_sClassName = 'oxorderarticle' | |
$_aPersParam = null | |
$_aStatuses = null |
oxOrderArticle.__construct | ( | ) |
Class constructor, initiates class constructor (parent.oxbase()).
Reimplemented from oxBase.
Definition at line 78 of file oxorderarticle.php.
oxOrderArticle.copyThis | ( | $ | oProduct | ) |
Copies passed to method product into $this.
object | $oProduct product to copy |
Definition at line 91 of file oxorderarticle.php.
oxOrderArticle.assign | ( | $ | dbRecord | ) |
Assigns DB field values to object fields.
string | $dbRecord DB record |
Reimplemented from oxBase.
Definition at line 111 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 127 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 154 of file oxorderarticle.php.
oxOrderArticle.getPersParams | ( | ) |
oxOrderArticle.setPersParams | ( | $ | aParams | ) |
Order persistent params setter
array | $aParams array of params |
Definition at line 196 of file oxorderarticle.php.
oxOrderArticle._setDeprecatedValues | ( | ) | [protected] |
Sets deprecate values
Definition at line 211 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 233 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.