MagicSmoke  $VERSION$
WOOrderInfo Class Reference

shortened info about orders More...

Inheritance diagram for WOOrderInfo:
WOOrderInfoAbstract WObject

Static Public Member Functions

static getAllOrders ($trans)
 called from GetOrderList transaction More...
 
static getOrdersByCoupon ($trans)
 called from GetOrdersByUser and getMyOrders transaction More...
 
static getOrdersByCustomer ($trans)
 called from GetOrdersByCustomer transaction More...
 
static getOrdersByEvents ($trans)
 called from GetOrdersByEvents transaction More...
 
static getOrdersByUser ($trans, $meonly)
 called from GetOrdersByUser and getMyOrders transaction More...
 
- Static Public Member Functions inherited from WOOrderInfoAbstract
static fromString ($txt)
 
static fromTableArrayorder (array $table)
 
static fromTableorder ($table)
 
static fromXml ($xml, $elem)
 
static validateamountdue ($value)
 
static validateamountitems ($value)
 
static validateamountpaid ($value)
 
static validateamounttickets ($value)
 
static validateamountvouchers ($value)
 
static validatecouponid ($value)
 
static validatecustomerid ($value)
 
static validateorderid ($value)
 
static validateordertime ($value)
 
static validatesenttime ($value)
 
static validateshippingcosts ($value)
 
static validateshippingtypeid ($value)
 
static validatesoldby ($value)
 
static validatestatus ($value)
 
static validatetotalprice ($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...
 

Protected Member Functions

 getAmountItemsFromDB ()
 mapping helper More...
 
 getAmountTicketsFromDB ()
 mapping helper More...
 
 getAmountVouchersFromDB ()
 mapping helper More...
 
 getTotalPriceFromDB ()
 mapping helper More...
 
- Protected Member Functions inherited from WOOrderInfoAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 

Static Protected Member Functions

static getCustomerListByOrders (array $olist)
 helper function for several transactions: selects customers by their IDs references by the given order info objects More...
 
- Static Protected Member Functions inherited from WOOrderInfoAbstract
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 Member Functions inherited from WOOrderInfoAbstract
 __construct ()
 
 getamountdue ()
 
 getamountitems ()
 
 getamountpaid ()
 
 getamounttickets ()
 
 getamountvouchers ()
 
 getcouponid ()
 
 getcustomerid ()
 
 getorderid ()
 
 getordertime ()
 
 getsenttime ()
 
 getshippingcosts ()
 
 getshippingtypeid ()
 
 getsoldby ()
 
 getstatus ()
 
 getstr_amountdue ()
 
 getstr_amountitems ()
 
 getstr_amountpaid ()
 
 getstr_amounttickets ()
 
 getstr_amountvouchers ()
 
 getstr_couponid ()
 
 getstr_customerid ()
 
 getstr_orderid ()
 
 getstr_ordertime ()
 
 getstr_senttime ()
 
 getstr_shippingcosts ()
 
 getstr_shippingtypeid ()
 
 getstr_soldby ()
 
 getstr_status ()
 
 getstr_totalprice ()
 
 gettotalprice ()
 
 propertyArray ()
 
 setamountdue ($value)
 
 setamountitems ($value)
 
 setamountpaid ($value)
 
 setamounttickets ($value)
 
 setamountvouchers ($value)
 
 setcouponid ($value)
 
 setcustomerid ($value)
 
 setorderid ($value)
 
 setordertime ($value)
 
 setsenttime ($value)
 
 setshippingcosts ($value)
 
 setshippingtypeid ($value)
 
 setsoldby ($value)
 
 setstatus ($value)
 
 settotalprice ($value)
 
 toString ()
 
 toTableorder (&$table)
 
 toXml ($xml, $elementname="OrderInfo")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 
- Public Attributes inherited from WOOrderInfoAbstract
const Cancelled =2
 
const Closed =128
 
const Placed =0
 
const Reserved =4
 
const Sent =1
 
const Sold =1
 
- Protected Attributes inherited from WOOrderInfoAbstract
 $prop_amountdue =null
 
 $prop_amountitems =null
 
 $prop_amountpaid =null
 
 $prop_amounttickets =null
 
 $prop_amountvouchers =null
 
 $prop_couponid =null
 
 $prop_customerid =null
 
 $prop_orderid =null
 
 $prop_ordertime =null
 
 $prop_senttime =null
 
 $prop_shippingcosts =null
 
 $prop_shippingtypeid =null
 
 $prop_soldby =null
 
 $prop_status =null
 
 $prop_totalprice =null
 

Detailed Description

shortened info about orders

Member Function Documentation

static WOOrderInfo::getAllOrders (   $trans)
static

called from GetOrderList transaction

References $db, and WTorder\selectFromDB().

Referenced by WTrGetOrderList\handleRequest().

WOOrderInfo::getAmountItemsFromDB ( )
protected

mapping helper

References $db.

WOOrderInfo::getAmountTicketsFromDB ( )
protected

mapping helper

References $db.

WOOrderInfo::getAmountVouchersFromDB ( )
protected

mapping helper

References $db.

static WOOrderInfo::getCustomerListByOrders ( array  $olist)
staticprotected

helper function for several transactions: selects customers by their IDs references by the given order info objects

References $db, $q, WOCustomerInfo\fromTableArraycustomer(), and WTcustomer\selectFromDB().

static WOOrderInfo::getOrdersByCoupon (   $trans)
static

called from GetOrdersByUser and getMyOrders transaction

References $db, WOCustomerInfo\fromTableArraycustomer(), WTcustomer\selectFromDB(), and WTorder\selectFromDB().

static WOOrderInfo::getOrdersByCustomer (   $trans)
static

called from GetOrdersByCustomer transaction

References $db, and WTorder\selectFromDB().

Referenced by WTrGetOrdersByCustomer\handleRequest().

static WOOrderInfo::getOrdersByEvents (   $trans)
static

called from GetOrdersByEvents transaction

References $db, and WTorder\selectFromDB().

Referenced by WTrGetOrdersByEvents\handleRequest().

static WOOrderInfo::getOrdersByUser (   $trans,
  $meonly 
)
static

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