MagicSmoke  $VERSION$
WOCoupon Class Reference
Inheritance diagram for WOCoupon:
WObject

Public Member Functions

 __construct ()
 
 add_rules ($value)
 
 clear_rules ()
 
 getamountuse ()
 
 getcouponid ()
 
 getdescription ()
 
 getflags ()
 
 getrules ()
 
 getstr_amountuse ()
 
 getstr_couponid ()
 
 getstr_description ()
 
 getstr_flags ()
 
 getstr_ticketsperorder ()
 
 getstr_validfrom ()
 
 getstr_validtill ()
 
 getticketsperorder ()
 
 getvalidfrom ()
 
 getvalidtill ()
 
 propertyArray ()
 
 setamountuse ($value)
 
 setcouponid ($value)
 
 setdescription ($value)
 
 setflags ($value)
 
 setrules (array $values)
 
 setticketsperorder ($value)
 
 setvalidfrom ($value)
 
 setvalidtill ($value)
 
 toString ()
 
 toTablecoupon (&$table)
 
 toXml ($xml, $elementname="Coupon")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Static Public Member Functions

static fromString ($txt)
 
static fromTableArraycoupon (array $table)
 
static fromTablecoupon ($table)
 
static fromXml ($xml, $elem)
 
static validateamountuse ($value)
 
static validatecouponid ($value)
 
static validatedescription ($value)
 
static validateflags ($value)
 
static validaterules ($value)
 
static validateticketsperorder ($value)
 
static validatevalidfrom ($value)
 
static validatevalidtill ($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

 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 

Static Protected Member Functions

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

 $prop_amountuse =null
 
 $prop_couponid =null
 
 $prop_description =null
 
 $prop_flags =null
 
 $prop_rules
 
 $prop_ticketsperorder =null
 
 $prop_validfrom =null
 
 $prop_validtill =null
 

Constructor & Destructor Documentation

WOCoupon::__construct ( )

Member Function Documentation

WOCoupon::add_rules (   $value)
WOCoupon::clear_rules ( )
static WOCoupon::fromString (   $txt)
static

References translate().

static WOCoupon::fromTableArraycoupon ( array  $table)
static

References $i.

Referenced by WTrGetCouponList\handleRequest().

static WOCoupon::fromXml (   $xml,
  $elem 
)
static
static WOCoupon::fromXmlHelper (   $data,
  $xml,
  $elem 
)
staticprotected
WOCoupon::getamountuse ( )

References $prop_amountuse.

Referenced by toXmlHelper().

WOCoupon::getcouponid ( )

References $prop_couponid.

Referenced by toXmlHelper().

WOCoupon::getdescription ( )

References $prop_description.

Referenced by toXmlHelper().

WOCoupon::getflags ( )

References $prop_flags.

Referenced by toXmlHelper().

WOCoupon::getrules ( )

References $prop_rules.

Referenced by toXmlHelper().

WOCoupon::getstr_amountuse ( )

Referenced by toXmlHelper().

WOCoupon::getstr_couponid ( )

References $prop_couponid.

Referenced by toXmlHelper().

WOCoupon::getstr_description ( )

References $prop_description.

Referenced by toXmlHelper().

WOCoupon::getstr_flags ( )

References $prop_flags.

Referenced by toXmlHelper().

WOCoupon::getstr_ticketsperorder ( )

Referenced by toXmlHelper().

WOCoupon::getstr_validfrom ( )

Referenced by toXmlHelper().

WOCoupon::getstr_validtill ( )

Referenced by toXmlHelper().

WOCoupon::getticketsperorder ( )

References $prop_ticketsperorder.

Referenced by toXmlHelper().

WOCoupon::getvalidfrom ( )

References $prop_validfrom.

Referenced by toXmlHelper().

WOCoupon::getvalidtill ( )

References $prop_validtill.

Referenced by toXmlHelper().

WOCoupon::propertyArray ( )
WOCoupon::setamountuse (   $value)
WOCoupon::setcouponid (   $value)
WOCoupon::setdescription (   $value)
WOCoupon::setflags (   $value)
WOCoupon::setrules ( array  $values)
WOCoupon::setticketsperorder (   $value)
WOCoupon::setvalidfrom (   $value)
WOCoupon::setvalidtill (   $value)
WOCoupon::toString ( )

References toXml().

WOCoupon::toXml (   $xml,
  $elementname = "Coupon" 
)

References toXmlHelper().

Referenced by toString().

static WOCoupon::validateamountuse (   $value)
static
static WOCoupon::validatecouponid (   $value)
static
static WOCoupon::validatedescription (   $value)
static
static WOCoupon::validateflags (   $value)
static
static WOCoupon::validaterules (   $value)
static
static WOCoupon::validateticketsperorder (   $value)
static
static WOCoupon::validatevalidfrom (   $value)
static
static WOCoupon::validatevalidtill (   $value)
static

Member Data Documentation

WOCoupon::$prop_amountuse =null
protected

Referenced by getamountuse(), and toTablecoupon().

WOCoupon::$prop_couponid =null
protected
WOCoupon::$prop_description =null
protected
WOCoupon::$prop_flags =null
protected
WOCoupon::$prop_rules
protected

Referenced by getrules().

WOCoupon::$prop_ticketsperorder =null
protected
WOCoupon::$prop_validfrom =null
protected

Referenced by getvalidfrom(), and toTablecoupon().

WOCoupon::$prop_validtill =null
protected

Referenced by getvalidtill(), and toTablecoupon().


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