MagicSmoke  $VERSION$
WOVoucherAudit Class Reference
Inheritance diagram for WOVoucherAudit:
WOVoucher WOVoucherAbstract WObject

Public Member Functions

 __construct ()
 
 getaudittime ()
 
 getaudittransaction ()
 
 getaudituname ()
 
 getcomment ()
 
 getstr_audittime ()
 
 getstr_audittransaction ()
 
 getstr_audituname ()
 
 getstr_comment ()
 
 propertyArray ()
 
 setaudittime ($value)
 
 setaudittransaction ($value)
 
 setaudituname ($value)
 
 setcomment ($value)
 
 toString ()
 
 toTablevoucher_audit (&$table)
 
 toXml ($xml, $elementname="VoucherAudit")
 
- Public Member Functions inherited from WOVoucher
 isStillValid ()
 returns true if the voucher is currently valid More...
 
 updatedValidity ()
 returns a timestamp to be stored for updating the validity period upon use of the voucher More...
 
- Public Member Functions inherited from WOVoucherAbstract
 __construct ()
 
 getisused ()
 
 getorderid ()
 
 getprice ()
 
 getstatus ()
 
 getstr_isused ()
 
 getstr_orderid ()
 
 getstr_price ()
 
 getstr_status ()
 
 getstr_tags ()
 
 getstr_validtime ()
 
 getstr_value ()
 
 getstr_voucherid ()
 
 gettags ()
 
 getvalidtime ()
 
 getvalue ()
 
 getvoucherid ()
 
 propertyArray ()
 
 setisused ($value)
 
 setorderid ($value)
 
 setprice ($value)
 
 setstatus ($value)
 
 settags ($value)
 
 setvalidtime ($value)
 
 setvalue ($value)
 
 setvoucherid ($value)
 
 toString ()
 
 toTablevoucher (&$table)
 
 toXml ($xml, $elementname="Voucher")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 

Static Public Member Functions

static fromString ($txt)
 
static fromTableArrayvoucher_audit (array $table)
 
static fromTablevoucher_audit ($table)
 
static fromXml ($xml, $elem)
 
static validateaudittime ($value)
 
static validateaudittransaction ($value)
 
static validateaudituname ($value)
 
static validatecomment ($value)
 
- Static Public Member Functions inherited from WOVoucher
static calculateInitialValidity ()
 calculates an initial validity date and returns it as timestamp More...
 
static calculateUpdatedValidity ($time)
 returns a timestamp to be stored for updating the validity period upon use of the voucher More...
 
static getTransactionComment ()
 helper for audit table creation More...
 
static GetVoucherAuditTransaction ($trans)
 implements the GetVoucherAudit transaction More...
 
static validVoucherPrices ()
 returns all valid voucher prices More...
 
- Static Public Member Functions inherited from WOVoucherAbstract
static fromString ($txt)
 
static fromTableArrayvoucher (array $table)
 
static fromTablevoucher ($table)
 
static fromXml ($xml, $elem)
 
static validateisused ($value)
 
static validateorderid ($value)
 
static validateprice ($value)
 
static validatestatus ($value)
 
static validatetags ($value)
 
static validatevalidtime ($value)
 
static validatevalue ($value)
 
static validatevoucherid ($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 WOVoucherAbstract
 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 WOVoucherAbstract
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_audittime =null
 
 $prop_audittransaction =null
 
 $prop_audituname =null
 
 $prop_comment =null
 
- Protected Attributes inherited from WOVoucherAbstract
 $prop_isused =null
 
 $prop_orderid =null
 
 $prop_price =null
 
 $prop_status =null
 
 $prop_tags =null
 
 $prop_validtime =null
 
 $prop_value =null
 
 $prop_voucherid =null
 

Additional Inherited Members

- Public Attributes inherited from WOVoucherAbstract
const InvalidPrice =2
 
const InvalidTime =3
 
const InvalidValue =1
 
const Ok =0
 

Constructor & Destructor Documentation

WOVoucherAudit::__construct ( )

Member Function Documentation

static WOVoucherAudit::fromString (   $txt)
static

References translate().

static WOVoucherAudit::fromTableArrayvoucher_audit ( array  $table)
static
static WOVoucherAudit::fromTablevoucher_audit (   $table)
static
static WOVoucherAudit::fromXml (   $xml,
  $elem 
)
static
static WOVoucherAudit::fromXmlHelper (   $data,
  $xml,
  $elem 
)
staticprotected
WOVoucherAudit::getaudittime ( )

References $prop_audittime.

Referenced by toXmlHelper().

WOVoucherAudit::getaudittransaction ( )

References $prop_audittransaction.

Referenced by toXmlHelper().

WOVoucherAudit::getaudituname ( )

References $prop_audituname.

Referenced by toXmlHelper().

WOVoucherAudit::getcomment ( )

References $prop_comment.

Referenced by toXmlHelper().

WOVoucherAudit::getstr_audittime ( )

Referenced by toXmlHelper().

WOVoucherAudit::getstr_audittransaction ( )

References $prop_audittransaction.

Referenced by toXmlHelper().

WOVoucherAudit::getstr_audituname ( )

References $prop_audituname.

Referenced by toXmlHelper().

WOVoucherAudit::getstr_comment ( )

References $prop_comment.

Referenced by toXmlHelper().

WOVoucherAudit::propertyArray ( )
WOVoucherAudit::setaudittime (   $value)
WOVoucherAudit::setaudittransaction (   $value)
WOVoucherAudit::setaudituname (   $value)
WOVoucherAudit::setcomment (   $value)
WOVoucherAudit::toString ( )

References toXml().

WOVoucherAudit::toXml (   $xml,
  $elementname = "VoucherAudit" 
)

References toXmlHelper().

Referenced by toString().

WOVoucherAudit::toXmlHelper (   $xml,
  $root 
)
protected
static WOVoucherAudit::validateaudittime (   $value)
static
static WOVoucherAudit::validateaudittransaction (   $value)
static
static WOVoucherAudit::validateaudituname (   $value)
static
static WOVoucherAudit::validatecomment (   $value)
static

Member Data Documentation

WOVoucherAudit::$prop_audittime =null
protected
WOVoucherAudit::$prop_audittransaction =null
protected
WOVoucherAudit::$prop_audituname =null
protected
WOVoucherAudit::$prop_comment =null
protected

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