MagicSmoke  $VERSION$
WOOrder Class Reference

full order class More...

Inheritance diagram for WOOrder:
WOOrderAbstract WObject

Public Member Functions

 getTotalPrice ()
 analyses itself and returns price More...
 
 isFullyPaid ()
 returns true if the order is fully paid More...
 
 mailDetails ()
 mail order details to customer More...
 
- Public Member Functions inherited from WOOrderAbstract
 __construct ()
 
 add_items ($value)
 
 add_tickets ($value)
 
 add_vouchers ($value)
 
 clear_items ()
 
 clear_tickets ()
 
 clear_vouchers ()
 
 getamountdue ()
 
 getamountpaid ()
 
 getcomments ()
 
 getcoupondescription ()
 
 getcouponid ()
 
 getcustomer ()
 
 getcustomerid ()
 
 getdeliveryaddress ()
 
 getdeliveryaddressid ()
 
 getinvoiceaddress ()
 
 getinvoiceaddressid ()
 
 getitems ()
 
 getorderid ()
 
 getordertime ()
 
 getsenttime ()
 
 getshippingcosts ()
 
 getshippingtype ()
 
 getshippingtypeid ()
 
 getsoldby ()
 
 getstatus ()
 
 getstr_amountdue ()
 
 getstr_amountpaid ()
 
 getstr_comments ()
 
 getstr_coupondescription ()
 
 getstr_couponid ()
 
 getstr_customerid ()
 
 getstr_deliveryaddressid ()
 
 getstr_invoiceaddressid ()
 
 getstr_orderid ()
 
 getstr_ordertime ()
 
 getstr_senttime ()
 
 getstr_shippingcosts ()
 
 getstr_shippingtypeid ()
 
 getstr_soldby ()
 
 getstr_status ()
 
 getstr_tags ()
 
 getstr_totalprice ()
 
 gettags ()
 
 gettickets ()
 
 gettotalprice ()
 
 getvouchers ()
 
 propertyArray ()
 
 setamountdue ($value)
 
 setamountpaid ($value)
 
 setcomments ($value)
 
 setcoupondescription ($value)
 
 setcouponid ($value)
 
 setcustomer ($value)
 
 setcustomerid ($value)
 
 setdeliveryaddress ($value)
 
 setdeliveryaddressid ($value)
 
 setinvoiceaddress ($value)
 
 setinvoiceaddressid ($value)
 
 setitems (array $values)
 
 setorderid ($value)
 
 setordertime ($value)
 
 setsenttime ($value)
 
 setshippingcosts ($value)
 
 setshippingtype ($value)
 
 setshippingtypeid ($value)
 
 setsoldby ($value)
 
 setstatus ($value)
 
 settags ($value)
 
 settickets (array $values)
 
 settotalprice ($value)
 
 setvouchers (array $values)
 
 toString ()
 
 toTableorder (&$table)
 
 toXml ($xml, $elementname="Order")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Static Public Member Functions

static addComment ($trans)
 called from the OrderAddComment transaction More...
 
static cancelOrder ($trans)
 called from CancelOrder transaction More...
 
static changeAddress ($trans)
 change the addresses on the order, called by ChangeOrderAddress transaction More...
 
static changeComments ($trans)
 called from the OrderChangeComments transaction More...
 
static changeShipping ($trans)
 called by OrderChangeShipping transaction More...
 
static changeTicketPrice ($trans)
 called from the ChangeTicketPrice transaction More...
 
static changeTicketPriceCategory ($trans)
 called from the ChangeTicketPriceCategory transaction More...
 
static changeVoucherValidity ($trans)
 called from the ChangeVoucherValidity transaction More...
 
static deductVoucher ($trans)
 called from the DeductVoucher transaction More...
 
static deletePayTypeTransaction ($trans)
 
static emptyVoucher ($trans)
 called from EmptyVoucher transaction More...
 
static getOrderAuditTransaction ($trans)
 order audit transaction More...
 
static getOrderByBarcode ($trans)
 called by GetOrderByBarcode transaction More...
 
static getOrderDocument ($trans)
 
static getOrderDocumentNames ($trans)
 
static getPaymentTypesTransaction ($trans)
 
static getPrintAtHomeSettings ($trans)
 
static getUserAuditTransaction ($trans)
 
static markAsShipped ($trans)
 called from the OrderMarkShipped transaction More...
 
static payForOrder ($trans)
 called from the OrderPay transaction More...
 
static payForOrderVoucher ($trans)
 called from the UseVoucher transaction More...
 
static refundOrder ($trans)
 called from the OrderRefund transaction More...
 
static reservation2Order ($trans)
 called from the ReservationToOrder transaction More...
 
static returnTicketVoucher ($trans)
 called from the ReturnTicketVoucher transaction More...
 
static setDefaultPayTypeTransaction ($trans)
 
static setOrderDocument ($trans)
 
static setPayTypeTransaction ($trans)
 
static setPrintAtHomeSettings ($trans)
 
- Static Public Member Functions inherited from WOOrderAbstract
static fromString ($txt)
 
static fromTableArrayorder (array $table)
 
static fromTableorder ($table)
 
static fromXml ($xml, $elem)
 
static validateamountdue ($value)
 
static validateamountpaid ($value)
 
static validatecomments ($value)
 
static validatecoupondescription ($value)
 
static validatecouponid ($value)
 
static validatecustomer ($value)
 
static validatecustomerid ($value)
 
static validatedeliveryaddress ($value)
 
static validatedeliveryaddressid ($value)
 
static validateinvoiceaddress ($value)
 
static validateinvoiceaddressid ($value)
 
static validateitems ($value)
 
static validateorderid ($value)
 
static validateordertime ($value)
 
static validatesenttime ($value)
 
static validateshippingcosts ($value)
 
static validateshippingtype ($value)
 
static validateshippingtypeid ($value)
 
static validatesoldby ($value)
 
static validatestatus ($value)
 
static validatetags ($value)
 
static validatetickets ($value)
 
static validatetotalprice ($value)
 
static validatevouchers ($value)
 
- Static Public Member Functions inherited from WObject
static elementsByTagName ($root, $tag)
 helper function that returns only the elements directly beneith the one given as $root More...
 
static fromXmlBoolean ($str)
 helper function for XML'ized objects that transforms XML boolean to PHP boolean More...
 
static isXmlBoolean ($str)
 helper function for XML'ized objects: it returns whether the string is a valid boolean More...
 

Static Protected Member Functions

static changeTicketPriceCheckEvent ($trans, $event, $changepast)
 called from the two functions below - checks whether the ticket can be changed More...
 
static changeTicketPriceCheckTicket ($trans, $tick, $changeused)
 called from the two functions below - checks whether the ticket can be changed More...
 
- Static Protected Member Functions inherited from WOOrderAbstract
static fromXmlHelper ($data, $xml, $elem)
 
- Static Protected Member Functions inherited from WObject
static fromXmlHelper ($data, $xml, $elem)
 base for deserialization More...
 
static objectToArray ($obj)
 helper function for classy objects that calls getPropertyArray if available More...
 

Additional Inherited Members

- Public Attributes inherited from WOOrderAbstract
const Cancelled =2
 
const Closed =128
 
const Placed =0
 
const Reserved =4
 
const Sent =1
 
const Sold =1
 
- Protected Member Functions inherited from WOOrderAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 
- Protected Attributes inherited from WOOrderAbstract
 $prop_amountdue =null
 
 $prop_amountpaid =null
 
 $prop_comments =null
 
 $prop_coupondescription =null
 
 $prop_couponid =null
 
 $prop_customer =null
 
 $prop_customerid =null
 
 $prop_deliveryaddress =null
 
 $prop_deliveryaddressid =null
 
 $prop_invoiceaddress =null
 
 $prop_invoiceaddressid =null
 
 $prop_items
 
 $prop_orderid =null
 
 $prop_ordertime =null
 
 $prop_senttime =null
 
 $prop_shippingcosts =null
 
 $prop_shippingtype =null
 
 $prop_shippingtypeid =null
 
 $prop_soldby =null
 
 $prop_status =null
 
 $prop_tags =null
 
 $prop_tickets
 
 $prop_totalprice =null
 
 $prop_vouchers
 

Detailed Description

full order class

Member Function Documentation

static WOOrder::addComment (   $trans)
static

called from the OrderAddComment transaction

References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), and tr().

Referenced by WTrOrderAddComment\handleRequest().

static WOOrder::changeAddress (   $trans)
static

change the addresses on the order, called by ChangeOrderAddress transaction

References $db, WOOrderAbstract\fromTableorder(), WTaddress\getFromDB(), WTorder\getFromDB(), and tr().

Referenced by WTrChangeOrderAddress\handleRequest().

static WOOrder::changeComments (   $trans)
static

called from the OrderChangeComments transaction

References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), and tr().

Referenced by WTrOrderChangeComments\handleRequest().

static WOOrder::changeShipping (   $trans)
static

called by OrderChangeShipping transaction

References WOOrderAbstract\fromTableorder(), WTshipping\getFromDB(), WTorder\getFromDB(), and tr().

Referenced by WTrOrderChangeShipping\handleRequest().

static WOOrder::changeTicketPrice (   $trans)
static
static WOOrder::changeTicketPriceCheckEvent (   $trans,
  $event,
  $changepast 
)
staticprotected

called from the two functions below - checks whether the ticket can be changed

References tr().

static WOOrder::changeTicketPriceCheckTicket (   $trans,
  $tick,
  $changeused 
)
staticprotected

called from the two functions below - checks whether the ticket can be changed

References WTticket\MaskChangeable, tr(), and WTticket\Used.

static WOOrder::changeVoucherValidity (   $trans)
static
static WOOrder::deductVoucher (   $trans)
static
static WOOrder::deletePayTypeTransaction (   $trans)
static
static WOOrder::emptyVoucher (   $trans)
static
static WOOrder::getOrderByBarcode (   $trans)
static

called by GetOrderByBarcode transaction

References $db, WOOrderAbstract\fromTableorder(), and WTorder\getFromDB().

Referenced by WTrGetOrderByBarcode\handleRequest().

static WOOrder::getOrderDocument (   $trans)
static
static WOOrder::getOrderDocumentNames (   $trans)
static
static WOOrder::getPaymentTypesTransaction (   $trans)
static
static WOOrder::getPrintAtHomeSettings (   $trans)
static
WOOrder::getTotalPrice ( )

analyses itself and returns price

References WOOrderAbstract\$prop_shippingcosts.

Referenced by isFullyPaid().

WOOrder::isFullyPaid ( )

returns true if the order is fully paid

References WOOrderAbstract\$prop_amountpaid, and getTotalPrice().

static WOOrder::markAsShipped (   $trans)
static

called from the OrderMarkShipped transaction

References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), WTorder\Placed, WTorder\Sent, and tr().

Referenced by WTrOrderMarkShipped\handleRequest().

static WOOrder::payForOrder (   $trans)
static
static WOOrder::payForOrderVoucher (   $trans)
static
static WOOrder::refundOrder (   $trans)
static

called from the OrderRefund transaction

References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), and tr().

Referenced by WTrOrderRefund\handleRequest().

static WOOrder::reservation2Order (   $trans)
static
static WOOrder::returnTicketVoucher (   $trans)
static
static WOOrder::setDefaultPayTypeTransaction (   $trans)
static
static WOOrder::setOrderDocument (   $trans)
static
static WOOrder::setPayTypeTransaction (   $trans)
static
static WOOrder::setPrintAtHomeSettings (   $trans)
static

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