MagicSmoke  $VERSION$
WOWebCart Class Reference

this is the class wrapping the cart tables, the business logic class is WebCart in rendering/cart_listing.php More...

Inheritance diagram for WOWebCart:
WOWebCartAbstract WObject

Public Member Functions

 getIsempty ()
 returns is empty attribute for twig More...
 
 getTotalsum ()
 returns the overall sum for twig More...
 
- Public Member Functions inherited from WOWebCartAbstract
 __construct ()
 
 add_items ($value)
 
 add_tickets ($value)
 
 add_vouchers ($value)
 
 clear_items ()
 
 clear_tickets ()
 
 clear_vouchers ()
 
 getcartid ()
 
 getcomment ()
 
 getcoupon ()
 
 getcouponid ()
 
 getcustomer ()
 
 getcustomerid ()
 
 getdeliveryaddress ()
 
 getdeliveryaddressid ()
 
 getinvoiceaddress ()
 
 getinvoiceaddressid ()
 
 getitems ()
 
 getshipping ()
 
 getshippingid ()
 
 getstr_cartid ()
 
 getstr_comment ()
 
 getstr_couponid ()
 
 getstr_customerid ()
 
 getstr_deliveryaddressid ()
 
 getstr_invoiceaddressid ()
 
 getstr_shippingid ()
 
 getstr_timeout ()
 
 gettickets ()
 
 gettimeout ()
 
 getvouchers ()
 
 propertyArray ()
 
 setcartid ($value)
 
 setcomment ($value)
 
 setcoupon ($value)
 
 setcouponid ($value)
 
 setcustomer ($value)
 
 setcustomerid ($value)
 
 setdeliveryaddress ($value)
 
 setdeliveryaddressid ($value)
 
 setinvoiceaddress ($value)
 
 setinvoiceaddressid ($value)
 
 setitems (array $values)
 
 setshipping ($value)
 
 setshippingid ($value)
 
 settickets (array $values)
 
 settimeout ($value)
 
 setvouchers (array $values)
 
 toString ()
 
 toTablecart (&$table)
 
 toXml ($xml, $elementname="WebCart")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Static Public Member Functions

static addCoupon ($trans)
 transaction to add coupon to cart More...
 
static addTickets ($trans)
 transaction to add tickets to cart More...
 
static addVoucher ($trans)
 transaction to add vouchers More...
 
static removeTickets ($trans)
 transaction to remove tickets from cart More...
 
static removeVoucher ($trans)
 transaction to remove vouchers More...
 
- Static Public Member Functions inherited from WOWebCartAbstract
static fromString ($txt)
 
static fromTableArraycart (array $table)
 
static fromTablecart ($table)
 
static fromXml ($xml, $elem)
 
static validatecartid ($value)
 
static validatecomment ($value)
 
static validatecoupon ($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 validateshipping ($value)
 
static validateshippingid ($value)
 
static validatetickets ($value)
 
static validatetimeout ($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...
 

Additional Inherited Members

- Protected Member Functions inherited from WOWebCartAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 
- Static Protected Member Functions inherited from WOWebCartAbstract
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...
 
- Protected Attributes inherited from WOWebCartAbstract
 $prop_cartid =null
 
 $prop_comment =null
 
 $prop_coupon =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_shipping =null
 
 $prop_shippingid =null
 
 $prop_tickets
 
 $prop_timeout =null
 
 $prop_vouchers
 

Detailed Description

this is the class wrapping the cart tables, the business logic class is WebCart in rendering/cart_listing.php

Member Function Documentation

static WOWebCart::addCoupon (   $trans)
static

transaction to add coupon to cart

References WOWebCartAbstract\fromTablecart(), WTcoupon\getFromDB(), and WTcart\getFromDB().

Referenced by WTrWebCartAddCoupon\handleRequest().

static WOWebCart::addVoucher (   $trans)
static
WOWebCart::getIsempty ( )

returns is empty attribute for twig

WOWebCart::getTotalsum ( )
static WOWebCart::removeTickets (   $trans)
static

transaction to remove tickets from cart

References WOWebCartAbstract\fromTablecart(), WTcartticket\getFromDB(), and WTcart\getFromDB().

Referenced by WTrWebCartRemoveTicket\handleRequest().

static WOWebCart::removeVoucher (   $trans)
static

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