MagicSmoke  $VERSION$
WOSeatPlan Class Reference
Inheritance diagram for WOSeatPlan:
WOSeatPlanAbstract WObject

Public Member Functions

 __construct ()
 constructs a fresh seat plan object More...
 
 addTickets ($numtickets, $categoryid)
 tries to add tickets in a specific category to the corresponding group(s) returns true on success, false if not all tickets could be added in case of error the internal state may be inconsistent, so subsequent calls to this method are not reliable More...
 
 groupById ($abbr)
 finds a group by its ID/abbreviation or null if it cannot be found More...
 
 initGroups ($eventid)
 initializes additional properties of groups and aligns with the event More...
 
 lastError ()
 
 priceAbbrs ($prc)
 
 priceCapacities ($prc)
 
 priceIDs ($prc)
 
- Public Member Functions inherited from WOSeatPlanAbstract
 __construct ()
 
 add_Background ($value)
 
 add_DefPrice ($value)
 
 add_Group ($value)
 
 add_Image ($value)
 
 add_VGroup ($value)
 
 clear_Background ()
 
 clear_DefPrice ()
 
 clear_Group ()
 
 clear_Image ()
 
 clear_VGroup ()
 
 getBackground ()
 
 getDefPrice ()
 
 getexclusive ()
 
 getGroup ()
 
 getImage ()
 
 getstr_exclusive ()
 
 getstr_version ()
 
 getversion ()
 
 getVGroup ()
 
 propertyArray ()
 
 setBackground (array $values)
 
 setDefPrice (array $values)
 
 setexclusive ($value)
 
 setGroup (array $values)
 
 setImage (array $values)
 
 setversion ($value)
 
 setVGroup (array $values)
 
 toString ()
 
 toXml ($xml, $elementname="SeatPlan")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Additional Inherited Members

- Static Public Member Functions inherited from WOSeatPlanAbstract
static fromString ($txt)
 
static fromXml ($xml, $elem)
 
static validateBackground ($value)
 
static validateDefPrice ($value)
 
static validateexclusive ($value)
 
static validateGroup ($value)
 
static validateImage ($value)
 
static validateversion ($value)
 
static validateVGroup ($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 inherited from WOSeatPlanAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 
- Static Protected Member Functions inherited from WOSeatPlanAbstract
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 WOSeatPlanAbstract
 $prop_Background
 
 $prop_DefPrice
 
 $prop_exclusive =null
 
 $prop_Group
 
 $prop_Image
 
 $prop_version =null
 
 $prop_VGroup
 

Constructor & Destructor Documentation

WOSeatPlan::__construct ( )

constructs a fresh seat plan object

References WTpricecategory\selectFromDB().

Member Function Documentation

WOSeatPlan::addTickets (   $numtickets,
  $categoryid 
)

tries to add tickets in a specific category to the corresponding group(s) returns true on success, false if not all tickets could be added in case of error the internal state may be inconsistent, so subsequent calls to this method are not reliable

References tr().

WOSeatPlan::groupById (   $abbr)

finds a group by its ID/abbreviation or null if it cannot be found

WOSeatPlan::initGroups (   $eventid)

initializes additional properties of groups and aligns with the event

References $db, and WTeventprice\selectFromDB().

WOSeatPlan::lastError ( )
WOSeatPlan::priceAbbrs (   $prc)

References $i.

WOSeatPlan::priceCapacities (   $prc)

References priceIDs().

WOSeatPlan::priceIDs (   $prc)

References $i.

Referenced by priceCapacities().


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