Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

oxDelivery Class Reference

Inheritance diagram for oxDelivery:
Collaboration diagram for oxDelivery:

List of all members.

Public Member Functions

 __construct ()
 setDelVatOnTop ($blOnTop)
 getArticles ()
 getCategories ()
 hasArtices ()
 hasArticles ()
 hasCategories ()
 getDeliveryAmount ($oBasketItem)
 setDeliveryPrice ($oPrice)
 getDeliveryPrice ($dVat=null)
 delete ($sOXID=null)
 isForBasket ($oBasket)
 getIdByName ($sTitle)

Protected Member Functions

 _isForArticle ($oContent, $iArtAmount)
 _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()

Detailed Description

Order delivery manager. Currently calculates price/costs.

Definition at line 7 of file oxdelivery.php.


Constructor & Destructor Documentation

oxDelivery.__construct (  ) 

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

Reimplemented from oxI18n.

Definition at line 92 of file oxdelivery.php.


Member Function Documentation

oxDelivery._checkDeliveryAmount ( iAmount  )  [protected]

checks if amount param is ok for this delivery

Parameters:
double $iAmount amount
Returns:
boolean

Definition at line 468 of file oxdelivery.php.

oxDelivery._isForArticle ( oContent,
iArtAmount 
) [protected]

Checks if delivery fits for one article

Parameters:
object $oContent shop basket item
integer $iArtAmount product amount
Returns:
bool

Definition at line 451 of file oxdelivery.php.

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 oxI18n.

Definition at line 325 of file oxdelivery.php.

oxDelivery.getArticles (  ) 

Collects article Ids which are assigned to current delivery

Returns:
array

Definition at line 116 of file oxdelivery.php.

oxDelivery.getCategories (  ) 

Collects category Ids which are assigned to current delivery

Returns:
array

Definition at line 140 of file oxdelivery.php.

oxDelivery.getDeliveryAmount ( oBasketItem  ) 

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

Parameters:
oxBasketItem $oBasketItem basket item object
Returns:
double

Definition at line 197 of file oxdelivery.php.

oxDelivery.getDeliveryPrice ( dVat = null  ) 

Returns oxprice object for delivery costs

Parameters:
double $dVat delivery vat
Returns:
oxPrice

Definition at line 267 of file oxdelivery.php.

oxDelivery.getIdByName ( sTitle  ) 

returns delivery id

Parameters:
string $sTitle delivery name
Returns:
string

Definition at line 495 of file oxdelivery.php.

oxDelivery.hasArtices (  ) 

Checks if delivery has assigned articles

Deprecated:
since 2011-04-22 (4.5.1) mistyping function name
See also:
hasArticles()
Returns:
bool

Definition at line 165 of file oxdelivery.php.

oxDelivery.hasArticles (  ) 

Checks if delivery has assigned articles

Returns:
bool

Definition at line 175 of file oxdelivery.php.

oxDelivery.hasCategories (  ) 

Checks if delivery has assigned categories

Returns:
bool

Definition at line 185 of file oxdelivery.php.

oxDelivery.isForBasket ( oBasket  ) 

Checks if delivery fits for current basket

Parameters:
oxbasket $oBasket shop basket
Returns:
bool

Definition at line 349 of file oxdelivery.php.

oxDelivery.setDeliveryPrice ( oPrice  ) 

Delivery price setter

Parameters:
oxprice $oPrice delivery price to set
Returns:
null

Definition at line 255 of file oxdelivery.php.

oxDelivery.setDelVatOnTop ( blOnTop  ) 

Delivery VAT config setter

Parameters:
bool $blOnTop delivery vat config
Returns:
null

Definition at line 106 of file oxdelivery.php.


Member Data Documentation

oxDelivery.$_aArtIds = null [protected]

Definition at line 59 of file oxdelivery.php.

oxDelivery.$_aCatIds = null [protected]

Definition at line 66 of file oxdelivery.php.

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

Definition at line 80 of file oxdelivery.php.

oxDelivery.$_blDelVatOnTop = false [protected]

Definition at line 87 of file oxdelivery.php.

oxDelivery.$_blFreeShipping = true [protected]

Definition at line 73 of file oxdelivery.php.

oxDelivery.$_dPrice = 0 [protected]

Definition at line 45 of file oxdelivery.php.

oxDelivery.$_iItemCnt = 0 [protected]

Definition at line 29 of file oxdelivery.php.

oxDelivery.$_iProdCnt = 0 [protected]

Definition at line 37 of file oxdelivery.php.

oxDelivery.$_oPrice = null [protected]

Definition at line 52 of file oxdelivery.php.

oxDelivery.$_sClassName = 'oxdelivery' [protected]

Reimplemented from oxI18n.

Definition at line 21 of file oxdelivery.php.

oxDelivery.$_sCoreTbl = 'oxdelivery' [protected]

Definition at line 14 of file oxdelivery.php.


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