oxDelivery Class Reference

Inheritance diagram for oxDelivery:

Inheritance graph
[legend]
Collaboration diagram for oxDelivery:

Collaboration graph
[legend]

List of all members.


Detailed Description

Order delivery manager. Currently calculates price/costs.

Public Member Functions

 __construct ()
 setDelVatOnTop ($blOnTop)
 getArticles ()
 getCategories ()
 hasArtices ()
 hasCategories ()
 getDeliveryAmount ($oBasketItem, $blExclNonMaterial=false)
 getDeliveryPrice ($dVat=null)
 delete ($sOXID=null)
 isForBasket ($oBasket, $blExclNonMaterial)

Protected Member Functions

 _checkDeliveryAmount ($iAmount)

Protected Attributes

 $_sCoreTbl = 'oxdelivery'
 $_sClassName = 'oxdelivery'
 $_iItemCnt = 0
 $_iProdCnt = 0
 $_dPrice = 0
 $_oPrice = null
 $_aArtIds = null
 $_aCatIds = null
 $_blFreeShipping = true
 $_blDelVatOnTop = false

Static Protected Attributes

static $_aProductList = array()

Constructor & Destructor Documentation

oxDelivery.__construct (  ) 

Class constructor, initiates parent constructor (parent.oxBase()).

Reimplemented from oxI18n.


Member Function Documentation

oxDelivery.setDelVatOnTop ( blOnTop  ) 

Delivery VAT config setter

Parameters:
bool $blOnTop delivery vat config
Returns:
null

oxDelivery.getArticles (  ) 

Collects article Ids which are assigned to current delivery

Returns:
array

oxDelivery.getCategories (  ) 

Collects category Ids which are assigned to current delivery

Returns:
array

oxDelivery.hasArtices (  ) 

Checks if delivery has assigned articles

Returns:
bool

oxDelivery.hasCategories (  ) 

Checks if delivery has assigned categories

Returns:
bool

oxDelivery.getDeliveryAmount ( oBasketItem,
blExclNonMaterial = false 
)

Returns amount (total net price/weight/volume/Amount) on which delivery price is applied

Parameters:
object $oBasketItem basket item object
bool $blExclNonMaterial exlude or not non material
Returns:
double

oxDelivery.getDeliveryPrice ( dVat = null  ) 

Returns oxprice object for delivery costs

Parameters:
double $dVat delivery vat
Returns:
oxPrice

oxDelivery.delete ( sOXID = null  ) 

Delete this object from the database, returns true on success.

Parameters:
string $sOXID Object ID (default null)
Returns:
bool

Reimplemented from oxBase.

oxDelivery.isForBasket ( oBasket,
blExclNonMaterial 
)

Checks if delivery fits for current basket

Parameters:
oxbasket $oBasket shop basket
bool $blExclNonMaterial marker if product is virtual
Returns:
bool

oxDelivery._checkDeliveryAmount ( iAmount  )  [protected]

checks if amount param is ok for this delivery

Parameters:
double $iAmount
Returns:
boolean


Member Data Documentation

oxDelivery.$_sCoreTbl = 'oxdelivery' [protected]

oxDelivery.$_sClassName = 'oxdelivery' [protected]

Reimplemented from oxI18n.

oxDelivery.$_iItemCnt = 0 [protected]

oxDelivery.$_iProdCnt = 0 [protected]

oxDelivery.$_dPrice = 0 [protected]

oxDelivery.$_oPrice = null [protected]

oxDelivery.$_aArtIds = null [protected]

oxDelivery.$_aCatIds = null [protected]

oxDelivery.$_blFreeShipping = true [protected]

oxDelivery.$_aProductList = array() [static, protected]

oxDelivery.$_blDelVatOnTop = false [protected]


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

Generated on Wed Oct 29 23:44:02 2008 for OXID eShop CE by  doxygen 1.5.5