MagicSmoke  $VERSION$
WOTicket Class Reference
Inheritance diagram for WOTicket:
WOTicketAbstract WObject WOTicketAuditAbstract WOTicketAudit

Public Member Functions

 amountToPay ()
 returns the amount that is to be paid for this ticket: if it is to be paid it is equal to the price, otherwise zero More...
 
 getevent ()
 helper to get the event data in templates More...
 
 isBlocking ()
 returns true if the ticket actually blocks a seat (reserved, ordered, in use, etc.) More...
 
- Public Member Functions inherited from WOTicketAbstract
 __construct ()
 
 geteventid ()
 
 getorderid ()
 
 getprice ()
 
 getpricecategory ()
 
 getpricecategoryid ()
 
 getseat ()
 
 getstatus ()
 
 getstr_eventid ()
 
 getstr_orderid ()
 
 getstr_price ()
 
 getstr_pricecategoryid ()
 
 getstr_seat ()
 
 getstr_status ()
 
 getstr_tags ()
 
 getstr_ticketid ()
 
 gettags ()
 
 getticketid ()
 
 propertyArray ()
 
 seteventid ($value)
 
 setorderid ($value)
 
 setprice ($value)
 
 setpricecategory ($value)
 
 setpricecategoryid ($value)
 
 setseat ($value)
 
 setstatus ($value)
 
 settags ($value)
 
 setticketid ($value)
 
 toString ()
 
 toTableticket (&$table)
 
 toXml ($xml, $elementname="Ticket")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Static Public Member Functions

static GetTicketAuditTransaction ($trans)
 GetTicketAudit transaction. More...
 
static useTicket ($trans)
 called from the UseTicket transaction More...
 
- Static Public Member Functions inherited from WOTicketAbstract
static fromString ($txt)
 
static fromTableArrayticket (array $table)
 
static fromTableticket ($table)
 
static fromXml ($xml, $elem)
 
static validateeventid ($value)
 
static validateorderid ($value)
 
static validateprice ($value)
 
static validatepricecategory ($value)
 
static validatepricecategoryid ($value)
 
static validateseat ($value)
 
static validatestatus ($value)
 
static validatetags ($value)
 
static validateticketid ($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

- Public Attributes inherited from WOTicketAbstract
const Cancelled =4
 
const MaskBlock =256
 
const MaskChangeable =16
 
const MaskPay =512
 
const MaskReturnable =16
 
const MaskUsable =768
 
const Ordered =786
 
const Refund =4
 
const Reserved =785
 
const Used =771
 
- Protected Member Functions inherited from WOTicketAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 
- Static Protected Member Functions inherited from WOTicketAbstract
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 WOTicketAbstract
 $prop_eventid =null
 
 $prop_orderid =null
 
 $prop_price =null
 
 $prop_pricecategory =null
 
 $prop_pricecategoryid =null
 
 $prop_seat =null
 
 $prop_status =null
 
 $prop_tags =null
 
 $prop_ticketid =null
 

Member Function Documentation

WOTicket::amountToPay ( )

returns the amount that is to be paid for this ticket: if it is to be paid it is equal to the price, otherwise zero

References WOTicketAbstract\$prop_price.

WOTicket::getevent ( )

helper to get the event data in templates

References WOEventAbstract\fromTableevent(), WOTicketAbstract\geteventid(), and WTevent\getFromDB().

static WOTicket::GetTicketAuditTransaction (   $trans)
static
WOTicket::isBlocking ( )

returns true if the ticket actually blocks a seat (reserved, ordered, in use, etc.)


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