MagicSmoke
$VERSION$
|
full order class 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 | |
full order class
|
static |
called from the OrderAddComment transaction
References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), and tr().
Referenced by WTrOrderAddComment\handleRequest().
|
static |
called from CancelOrder transaction
References $db, WTticket\Cancelled, WTorder\Cancelled, WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), WTevent\getFromDB(), WTticket\MaskReturnable, WTorder\Placed, WTorder\Reserved, WTvoucher\selectFromDB(), WTticket\selectFromDB(), WTorder\Sent, and tr().
Referenced by WTrCancelOrder\handleRequest().
|
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 |
called from the OrderChangeComments transaction
References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), and tr().
Referenced by WTrOrderChangeComments\handleRequest().
|
static |
called by OrderChangeShipping transaction
References WOOrderAbstract\fromTableorder(), WTshipping\getFromDB(), WTorder\getFromDB(), and tr().
Referenced by WTrOrderChangeShipping\handleRequest().
|
static |
called from the ChangeTicketPrice transaction
References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), WTticket\getFromDB(), WTevent\getFromDB(), WTrChangeTicketPrice\Priv_ChangePastTicket, and WTrChangeTicketPrice\Priv_ChangeUsedTicket.
Referenced by WTrChangeTicketPrice\handleRequest().
|
static |
called from the ChangeTicketPriceCategory transaction
References $db, WOOrderAbstract\fromTableorder(), WTevent\getFromDB(), WTeventprice\getFromDB(), WTticket\getFromDB(), WTpricecategory\getFromDB(), WTorder\getFromDB(), WTticket\MaskBlock, WTrChangeTicketPriceCategory\Priv_ChangePastTicket, WTrChangeTicketPriceCategory\Priv_ChangeUsedTicket, WTticket\selectFromDB(), and tr().
Referenced by WTrChangeTicketPriceCategory\handleRequest().
|
staticprotected |
called from the two functions below - checks whether the ticket can be changed
References tr().
|
staticprotected |
called from the two functions below - checks whether the ticket can be changed
References WTticket\MaskChangeable, tr(), and WTticket\Used.
|
static |
called from the ChangeVoucherValidity transaction
References WOOrderAbstract\fromTableorder(), WOVoucherAbstract\fromTablevoucher(), WTorder\getFromDB(), WTvoucher\getFromDB(), and tr().
Referenced by WTrChangeVoucherValidity\handleRequest().
|
static |
called from the DeductVoucher transaction
References WOOrderAbstract\fromTableorder(), WOVoucherAbstract\fromTablevoucher(), WTorder\getFromDB(), WTvoucher\getFromDB(), and tr().
Referenced by WTrDeductVoucher\handleRequest().
|
static |
References WTpaymenttype\getFromDB(), and WTpaymenttype\newRow().
Referenced by WTrDeletePaymentType\handleRequest().
|
static |
called from EmptyVoucher transaction
References WOOrderAbstract\fromTableorder(), WOVoucherAbstract\fromTablevoucher(), WTorder\getFromDB(), WTvoucher\getFromDB(), and tr().
Referenced by WTrEmptyVoucher\handleRequest().
|
static |
order audit transaction
References $db, WOOrderAudit\fromTableArrayorder_audit(), WOTicketAuditAbstract\fromTableArrayticket_audit(), WOVoucherAudit\fromTableArrayvoucher_audit(), WTticket_audit\selectFromDB(), WTorder_audit\selectFromDB(), and WTvoucher_audit\selectFromDB().
Referenced by WTrGetOrderAudit\handleRequest().
|
static |
called by GetOrderByBarcode transaction
References $db, WOOrderAbstract\fromTableorder(), and WTorder\getFromDB().
Referenced by WTrGetOrderByBarcode\handleRequest().
|
static |
References $db, $q, WOOrderDocument\fromTableorderdocuments(), and WTorderdocuments\selectFromDB().
Referenced by WTrGetOrderDocument\handleRequest().
|
static |
References $db, $q, WOOrderDocumentInfo\fromTableArrayorderdocuments(), and WTorderdocuments\selectFromDB().
Referenced by WTrGetOrderDocumentNames\handleRequest().
|
static |
References $db, WOPaymentType\fromTableArraypaymenttype(), and WTpaymenttype\selectFromDB().
Referenced by WTrGetPaymentTypes\handleRequest().
|
static |
References WTconfig\selectFromDB(), and WOKeyValuePair\setkey().
Referenced by WTrGetPrintAtHomeSettings\handleRequest().
WOOrder::getTotalPrice | ( | ) |
analyses itself and returns price
References WOOrderAbstract\$prop_shippingcosts.
Referenced by isFullyPaid().
|
static |
References $db, WOItemAudit\fromTableArrayitem_audit(), WOOrderAudit\fromTableArrayorder_audit(), WOTicketAuditAbstract\fromTableArrayticket_audit(), WOVoucherAudit\fromTableArrayvoucher_audit(), WTuser\getFromDB(), WTvoucher_audit\selectFromDB(), WTitem_audit\selectFromDB(), WTorder_audit\selectFromDB(), WTticket_audit\selectFromDB(), and tr().
Referenced by WTrGetUserAudit\handleRequest().
WOOrder::isFullyPaid | ( | ) |
returns true if the order is fully paid
References WOOrderAbstract\$prop_amountpaid, and getTotalPrice().
WOOrder::mailDetails | ( | ) |
mail order details to customer
References $basevars, $DemoMailAddr, $IsDemoSystem, $mode, $page, WOCustomerAbstract\fromTablecustomer(), WOOrderAbstract\getcustomerid(), WTcustomer\getFromDB(), BaseVars\init(), BaseVars\initTwig(), and isEmail().
|
static |
called from the OrderMarkShipped transaction
References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), WTorder\Placed, WTorder\Sent, and tr().
Referenced by WTrOrderMarkShipped\handleRequest().
|
static |
called from the OrderPay transaction
References WOOrderAbstract\fromTableorder(), WTpaymenttype\getFromDB(), WTorder\getFromDB(), WTpaymenttype\selectFromDB(), and tr().
Referenced by WTrOrderPay\handleRequest().
|
static |
called from the UseVoucher transaction
References WOOrderAbstract\fromTableorder(), WOVoucherAbstract\fromTablevoucher(), WTpaymenttype\getFromDB(), WTorder\getFromDB(), WTvoucher\getFromDB(), WTrUseVoucher\Priv_CanPayVoucherWithVoucher, and tr().
Referenced by WTrUseVoucher\handleRequest().
|
static |
called from the OrderRefund transaction
References WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), and tr().
Referenced by WTrOrderRefund\handleRequest().
|
static |
called from the ReservationToOrder transaction
References $db, WOOrderAbstract\fromTableorder(), WTorder\getFromDB(), WTticket\Ordered, WTorder\Placed, WTticket\Reserved, WTorder\Reserved, WTticket\selectFromDB(), and tr().
Referenced by WTrReservationToOrder\handleRequest().
|
static |
called from the ReturnTicketVoucher transaction
References WTticket\Cancelled, WOOrderAbstract\fromTableorder(), WTticket\getFromDB(), WTorder\getFromDB(), WTevent\getFromDB(), WTvoucher\getFromDB(), WTticket\MaskReturnable, and tr().
Referenced by WTrReturnTicketVoucher\handleRequest().
|
static |
References $db, WOPaymentType\fromTablepaymenttype(), WTpaymenttype\getFromDB(), and tr().
Referenced by WTrSetDefaultPaymentType\handleRequest().
|
static |
References $db, $q, WTorderdocuments\newRow(), and WTorderdocuments\selectFromDB().
Referenced by WTrSetOrderDocument\handleRequest().
|
static |
References WOPaymentType\fromTablepaymenttype(), WTpaymenttype\getFromDB(), WTpaymenttype\newRow(), and tr().
Referenced by WTrSetPaymentType\handleRequest().
|
static |
References WTconfig\getFromDB(), and WTconfig\newRow().
Referenced by WTrSetPrintAtHomeSettings\handleRequest().