MagicSmoke  $VERSION$
WOEvent Class Reference
Inheritance diagram for WOEvent:
WOEventAbstract WObject

Public Member Functions

 cancelAllTickets ()
 helper function: cancels all usable tickets of this event More...
 
 getAmountReservedFromDB ()
 get amount of reserved tickets from DB More...
 
 getAmountSoldFromDB ()
 get amount of sold tickets from DB More...
 
 syncPricesToDB ()
 helper function for create/changeEvent - pushes the current list of prices to the database More...
 
- Public Member Functions inherited from WOEventAbstract
 __construct ()
 
 add_price ($value)
 
 clear_price ()
 
 getamountFree ()
 
 getamountReserved ()
 
 getamountSold ()
 
 getartist ()
 
 getartistid ()
 
 getcancelreason ()
 
 getcanuse ()
 
 getcapacity ()
 
 getcomment ()
 
 getdescription ()
 
 getend ()
 
 getflags ()
 
 getid ()
 
 getiscancelled ()
 
 getprice ()
 
 getroom ()
 
 getseatplan ()
 
 getseatplanid ()
 
 getstart ()
 
 getstr_amountFree ()
 
 getstr_amountReserved ()
 
 getstr_amountSold ()
 
 getstr_artistid ()
 
 getstr_cancelreason ()
 
 getstr_canuse ()
 
 getstr_capacity ()
 
 getstr_comment ()
 
 getstr_description ()
 
 getstr_end ()
 
 getstr_flags ()
 
 getstr_id ()
 
 getstr_iscancelled ()
 
 getstr_room ()
 
 getstr_seatplanid ()
 
 getstr_start ()
 
 getstr_tags ()
 
 getstr_tax ()
 
 getstr_title ()
 
 gettags ()
 
 gettax ()
 
 gettitle ()
 
 propertyArray ()
 
 setamountFree ($value)
 
 setamountReserved ($value)
 
 setamountSold ($value)
 
 setartist ($value)
 
 setartistid ($value)
 
 setcancelreason ($value)
 
 setcanuse ($value)
 
 setcapacity ($value)
 
 setcomment ($value)
 
 setdescription ($value)
 
 setend ($value)
 
 setflags ($value)
 
 setid ($value)
 
 setiscancelled ($value)
 
 setprice (array $values)
 
 setroom ($value)
 
 setseatplan ($value)
 
 setseatplanid ($value)
 
 setstart ($value)
 
 settags ($value)
 
 settax ($value)
 
 settitle ($value)
 
 toString ()
 
 toTableevent (&$table)
 
 toXml ($xml, $elementname="Event")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Static Public Member Functions

static cancelEvent ($trans)
 called by CancelEvent transaction More...
 
static changeEvent ($trans)
 called by ChangeEvent transaction More...
 
static createEvent ($trans)
 called by CreateEvent transaction More...
 
static getAllEvents ($trans)
 XML iface: get all events. More...
 
static getEntranceEvents ($trans)
 called by the GetEntranceEvents transaction More...
 
static getEventList ($trans)
 XML iface: get list of events. More...
 
static getSummary ($trans)
 called by the GetEventSummary transaction: returns the full event summary More...
 
- Static Public Member Functions inherited from WOEventAbstract
static fromString ($txt)
 
static fromTableArrayevent (array $table)
 
static fromTableevent ($table)
 
static fromXml ($xml, $elem)
 
static validateamountFree ($value)
 
static validateamountReserved ($value)
 
static validateamountSold ($value)
 
static validateartist ($value)
 
static validateartistid ($value)
 
static validatecancelreason ($value)
 
static validatecanuse ($value)
 
static validatecapacity ($value)
 
static validatecomment ($value)
 
static validatedescription ($value)
 
static validateend ($value)
 
static validateflags ($value)
 
static validateid ($value)
 
static validateiscancelled ($value)
 
static validateprice ($value)
 
static validateroom ($value)
 
static validateseatplan ($value)
 
static validateseatplanid ($value)
 
static validatestart ($value)
 
static validatetags ($value)
 
static validatetax ($value)
 
static validatetitle ($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 WOEventAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 
- Static Protected Member Functions inherited from WOEventAbstract
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 WOEventAbstract
 $prop_amountFree =null
 
 $prop_amountReserved =null
 
 $prop_amountSold =null
 
 $prop_artist =null
 
 $prop_artistid =null
 
 $prop_cancelreason =null
 
 $prop_canuse =null
 
 $prop_capacity =null
 
 $prop_comment =null
 
 $prop_description =null
 
 $prop_end =null
 
 $prop_flags =null
 
 $prop_id =null
 
 $prop_iscancelled =null
 
 $prop_price
 
 $prop_room =null
 
 $prop_seatplan =null
 
 $prop_seatplanid =null
 
 $prop_start =null
 
 $prop_tags =null
 
 $prop_tax =null
 
 $prop_title =null
 

Member Function Documentation

WOEvent::cancelAllTickets ( )

helper function: cancels all usable tickets of this event

References $db, WTticket\MaskReturnable, WTticket\Refund, and WTticket\selectFromDB().

static WOEvent::cancelEvent (   $trans)
static

called by CancelEvent transaction

References WOEventAbstract\fromTableevent(), WTevent\getFromDB(), and tr().

Referenced by WTrCancelEvent\handleRequest().

static WOEvent::changeEvent (   $trans)
static

called by ChangeEvent transaction

References WOEventAbstract\fromTableevent(), WTevent\getFromDB(), and tr().

Referenced by WTrChangeEvent\handleRequest().

static WOEvent::createEvent (   $trans)
static

called by CreateEvent transaction

References WOEventAbstract\fromTableevent(), WTevent\newRow(), and tr().

Referenced by WTrCreateEvent\handleRequest().

static WOEvent::getAllEvents (   $trans)
static

XML iface: get all events.

References WOEventAbstract\fromTableArrayevent(), and WTevent\selectFromDB().

Referenced by WTrGetAllEvents\handleRequest().

WOEvent::getAmountReservedFromDB ( )

get amount of reserved tickets from DB

References $db, and WTticket\Reserved.

WOEvent::getAmountSoldFromDB ( )

get amount of sold tickets from DB

References $db, WTticket\Ordered, and WTticket\Used.

static WOEvent::getEntranceEvents (   $trans)
static

called by the GetEntranceEvents transaction

References $db, WOEventAbstract\fromTableArrayevent(), and WTevent\selectFromDB().

Referenced by WTrGetEntranceEvents\handleRequest().

static WOEvent::getEventList (   $trans)
static

XML iface: get list of events.

References $db, WOEventAbstract\fromTableArrayevent(), and WTevent\selectFromDB().

Referenced by WTrGetEventList\handleRequest().

static WOEvent::getSummary (   $trans)
static

called by the GetEventSummary transaction: returns the full event summary

References $db, WOOrderAbstract\fromTableArrayorder(), WOEventAbstract\fromTableevent(), WTevent\getFromDB(), WTorder\selectFromDB(), and tr().

Referenced by WTrGetEventSummary\handleRequest().

WOEvent::syncPricesToDB ( )

helper function for create/changeEvent - pushes the current list of prices to the database

References $db, WOEventAbstract\$prop_id, WTeventprice\newRow(), and WTeventprice\selectFromDB().


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