Order Class Reference

Inheritance diagram for Order:

Inheritance graph
[legend]
Collaboration diagram for Order:

Collaboration graph
[legend]

List of all members.


Detailed Description

Order manager. Arranges user ordering data, checks/validates it, on success stores ordering data to DB.

Definition at line 7 of file order.php.


Public Member Functions

 init ()
 render ()
 execute ()
 getPayment ()
 getBasket ()
 getExecuteFnc ()
 getOrderRemark ()
 getBasketArticles ()
 getDelAddress ()
 getShipSet ()
 isConfirmAGBActive ()
 isConfirmCustInfoActive ()
 isConfirmAGBError ()
 isConfirmCustInfoError ()
 showOrderButtonOnTop ()
 isWrapping ()

Protected Member Functions

 _getNextStep ($iSuccess)

Protected Attributes

 $_oPayment = null
 $_oBasket = null
 $_sOrderRemark = null
 $_oBasketArtList = null
 $_sRemoteAddress = null
 $_oDelAddress = null
 $_oShipSet = null
 $_blConfirmAGB = null
 $_blShowOrderButtonOnTop = null
 $_blConfirmAGBError = null
 $_blConfirmCustInfo = null
 $_blConfirmCustInfoError = null
 $_sThisTemplate = 'order.tpl'
 $_blIsOrderStep = true
 $_iWrapCnt = null

Member Function Documentation

Order.init (  ) 

Loads basket oxsession.getBasket(), sets $this->oBasket->blCalcNeeded = true to recalculate, sets back basket to session oxsession.setBasket(), executes parent.init().

Returns:
null

Reimplemented from oxUBase.

Definition at line 109 of file order.php.

Order.render (  ) 

Executes parent.render(), if basket is empty - redirects to main page and exits the script (oxorder.validateOrder()). Loads and passes payment info to template engine. Refreshes basket articles info by additionally loading each article object (oxorder.getProdFromBasket()), adds customer addressing/delivering data (oxorder.getDelAddressInfo()) and delivery sets info (oxorder.getShipping()). Returns name of template to render order._sThisTemplate.

Template variables: payment, execute_fnc, order_remark, basketitemlist, iplog,oDelAdress, oShipSet, blConfirmAGB

Returns:
string

Reimplemented from oxUBase.

Definition at line 137 of file order.php.

Order.execute (  ) 

Checks for order rules confirmation ("ord_agb", "ord_custinfo" form values)(if no rules agreed - returns to order view), loads basket contents (plus applied price/amount discount if available - checks for stock, checks user data (if no data is set - returns to user login page). Stores order info to database (oxorder.finalizeOrder()). According to sum for items automatically assigns user to special user group ( oxuser.onOrderExecute(); if this option is not disabled in admin). Finally you will be redirected to next page (order._getNextStep()).

Template variables: agb_err, custinfo_err

Returns:
string

Definition at line 204 of file order.php.

Order._getNextStep ( iSuccess  )  [protected]

Returns next order step. If ordering was sucessfull - returns string "thankyou" (possible additional parameters), otherwise - returns string "payment" with additional error parameters.

Parameters:
integer $iSuccess status code
Returns:
string $sNextStep partial parameter url for next step

Definition at line 257 of file order.php.

Order.getPayment (  ) 

Template variable getter. Returns payment object

Returns:
object

Definition at line 295 of file order.php.

Order.getBasket (  ) 

Template variable getter. Returns active basket

Returns:
object

Definition at line 320 of file order.php.

Order.getExecuteFnc (  ) 

Template variable getter. Returns execution function name

Returns:
string

Definition at line 336 of file order.php.

Order.getOrderRemark (  ) 

Template variable getter. Returns user remark

Returns:
string

Definition at line 346 of file order.php.

Order.getBasketArticles (  ) 

Template variable getter. Returns basket article list

Returns:
object

Definition at line 362 of file order.php.

Order.getDelAddress (  ) 

Template variable getter. Returns delivery address

Returns:
object

Reimplemented from oxUBase.

Definition at line 378 of file order.php.

Order.getShipSet (  ) 

Template variable getter. Returns shipping set

Returns:
object

Definition at line 393 of file order.php.

Order.isConfirmAGBActive (  ) 

Template variable getter. Returns if option "blConfirmAGB" is on

Returns:
bool

Definition at line 412 of file order.php.

Order.isConfirmCustInfoActive (  ) 

Template variable getter. Returns if option "blConfirmCustInfo" is on. For compatibility reasons for a while. will be removed in future

Returns:
bool

Definition at line 427 of file order.php.

Order.isConfirmAGBError (  ) 

Template variable getter. Returns if option "blConfirmAGB" was not set

Returns:
bool

Definition at line 444 of file order.php.

Order.isConfirmCustInfoError (  ) 

Template variable getter. Returns if option "blConfirmCustInfo" was not set. For compatibility reasons for a while. will be removed in future.

Returns:
bool

Definition at line 455 of file order.php.

Order.showOrderButtonOnTop (  ) 

Template variable getter. Returns if option "blShowOrderButtonOnTop" is on

Returns:
bool

Definition at line 465 of file order.php.

Order.isWrapping (  ) 

Returns wrapping options availability state (TRUE/FALSE)

Returns:
bool

Definition at line 479 of file order.php.


Member Data Documentation

Order.$_oPayment = null [protected]

Definition at line 13 of file order.php.

Order.$_oBasket = null [protected]

Definition at line 19 of file order.php.

Order.$_sOrderRemark = null [protected]

Definition at line 25 of file order.php.

Order.$_oBasketArtList = null [protected]

Definition at line 31 of file order.php.

Order.$_sRemoteAddress = null [protected]

Definition at line 37 of file order.php.

Order.$_oDelAddress = null [protected]

Reimplemented from oxUBase.

Definition at line 43 of file order.php.

Order.$_oShipSet = null [protected]

Definition at line 49 of file order.php.

Order.$_blConfirmAGB = null [protected]

Definition at line 55 of file order.php.

Order.$_blShowOrderButtonOnTop = null [protected]

Definition at line 61 of file order.php.

Order.$_blConfirmAGBError = null [protected]

Definition at line 67 of file order.php.

Order.$_blConfirmCustInfo = null [protected]

Definition at line 74 of file order.php.

Order.$_blConfirmCustInfoError = null [protected]

Definition at line 81 of file order.php.

Order.$_sThisTemplate = 'order.tpl' [protected]

Reimplemented from oxView.

Definition at line 88 of file order.php.

Order.$_blIsOrderStep = true [protected]

Reimplemented from oxUBase.

Definition at line 95 of file order.php.

Order.$_iWrapCnt = null [protected]

Count of wrapping + cards options

Definition at line 100 of file order.php.


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

Generated on Wed Apr 22 12:29:47 2009 for OXID eShop CE by  doxygen 1.5.5