oxOrderArticle Class Reference

Inheritance diagram for oxOrderArticle:
[legend]
Collaboration diagram for oxOrderArticle:
[legend]

List of all members.


Detailed Description

Order article manager. Performs copying of article.

Definition at line 8 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

Constructor & Destructor Documentation

oxOrderArticle.__construct (  ) 

Class constructor, initiates class constructor (parent.oxbase()).

Reimplemented from oxBase.

Definition at line 79 of file oxorderarticle.php.


Member Function Documentation

oxOrderArticle.copyThis ( oProduct  ) 

Copies passed to method product into $this.

Parameters:
object $oProduct product to copy
Returns:
null

Definition at line 92 of file oxorderarticle.php.

oxOrderArticle.assign ( dbRecord  ) 

Assigns DB field values to object fields.

Parameters:
string $dbRecord DB record
Returns:
null

Reimplemented from oxBase.

Definition at line 112 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

Parameters:
double $dAddAmount amount which will be substracled from value in db
bool $blAllowNegativeStock amount allow or not negative stock value
Returns:
null

Definition at line 128 of file oxorderarticle.php.

oxOrderArticle._getArtStock ( dAddAmount = null,
blAllowNegativeStock = null 
) [protected]

Adds or substracts defined amount passed by param from arcticle stock

Parameters:
double $dAddAmount amount which will be added/substracled from value in db
bool $blAllowNegativeStock allow/disallow negative stock value
Returns:
double

Definition at line 155 of file oxorderarticle.php.

oxOrderArticle.getPersParams (  ) 

Order persistent data getter

Returns:
array

Definition at line 177 of file oxorderarticle.php.

oxOrderArticle.setPersParams ( aParams  ) 

Order persistent params setter

Parameters:
array $aParams array of params
Returns:
null

Definition at line 197 of file oxorderarticle.php.

oxOrderArticle._setDeprecatedValues (  )  [protected]

Sets deprecate values

Deprecated:
This method as well as all deprecated class variables is deprecated
Returns:
null

Definition at line 212 of file oxorderarticle.php.

oxOrderArticle._setFieldData ( sFieldName,
sValue,
iDataType = oxField::T_TEXT 
) [protected]

Sets data field value

Parameters:
string $sFieldName index OR name (eg. 'oxarticles__oxtitle') of a data field to set
string $sValue value of data field
int $iDataType field type
Returns:
null

Reimplemented from oxBase.

Definition at line 233 of file oxorderarticle.php.


Member Data Documentation

oxOrderArticle.$_sClassName = 'oxorderarticle' [protected]

Reimplemented from oxBase.

Definition at line 15 of file oxorderarticle.php.

oxOrderArticle.$_aPersParam = null [protected]

Definition at line 22 of file oxorderarticle.php.

oxOrderArticle.$_aStatuses = null [protected]

Definition at line 29 of file oxorderarticle.php.

oxOrderArticle.$aStatuses = null

Definition at line 38 of file oxorderarticle.php.

oxOrderArticle.$aPersParam = null

Definition at line 47 of file oxorderarticle.php.

oxOrderArticle.$ftotbrutprice = null

Definition at line 56 of file oxorderarticle.php.

oxOrderArticle.$fbrutprice = null

Definition at line 65 of file oxorderarticle.php.

oxOrderArticle.$fnetprice = null

Definition at line 74 of file oxorderarticle.php.


The documentation for this class was generated from the following file:

Generated on Thu Dec 4 12:05:29 2008 for OXID eShop CE by  doxygen 1.5.5