|
MagicSmoke
$VERSION$
|
this is the class wrapping the cart tables, the business logic class is WebCart in rendering/cart_listing.php 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 | |
this is the class wrapping the cart tables, the business logic class is WebCart in rendering/cart_listing.php
|
static |
transaction to add coupon to cart
References WOWebCartAbstract\fromTablecart(), WTcoupon\getFromDB(), and WTcart\getFromDB().
Referenced by WTrWebCartAddCoupon\handleRequest().
|
static |
transaction to add tickets to cart
References WOWebCartAbstract\fromTablecart(), WOEventPriceAbstract\fromTableeventprice(), WTcartticket\getFromDB(), WTcart\getFromDB(), WTeventprice\getFromDB(), WTevent\getFromDB(), and WTcartticket\newRow().
Referenced by WTrWebCartAddTicket\handleRequest().
|
static |
transaction to add vouchers
References WOWebCartAbstract\fromTablecart(), WTcart\getFromDB(), WTcartvoucher\newRow(), and WOVoucher\validVoucherPrices().
Referenced by WTrWebCartAddVoucher\handleRequest().
| WOWebCart::getIsempty | ( | ) |
returns is empty attribute for twig
| WOWebCart::getTotalsum | ( | ) |
returns the overall sum for twig
References WOWebCartAbstract\getshipping(), WOWebCartAbstract\gettickets(), and WOWebCartAbstract\getvouchers().
|
static |
transaction to remove tickets from cart
References WOWebCartAbstract\fromTablecart(), WTcartticket\getFromDB(), and WTcart\getFromDB().
Referenced by WTrWebCartRemoveTicket\handleRequest().
|
static |
transaction to remove vouchers
References WOWebCartAbstract\fromTablecart(), WTcartvoucher\getFromDB(), and WTcart\getFromDB().
Referenced by WTrWebCartRemoveVoucher\handleRequest().