MagicSmoke  $VERSION$
WobTransactionBase Class Reference

Ancestor of all Transactions. More...

Inheritance diagram for WobTransactionBase:
WobTransaction MSmokeTransaction WTrBackup WTrBackupExplore WTrBackupTable WTrCancelEvent WTrCancelOrder WTrChangeCoupon WTrChangeCustomer WTrChangeCustomerMail WTrChangeEvent WTrChangeMyPassword WTrChangeOrderAddress WTrChangePassword WTrChangePriceCategory WTrChangeShipping WTrChangeTicketPrice WTrChangeTicketPriceCategory WTrChangeVoucherValidity WTrCreateArtist WTrCreateContactType WTrCreateCountry WTrCreateCoupon WTrCreateCustomer WTrCreateEvent WTrCreateOrder WTrCreatePriceCategory WTrCreateReservation WTrCreateRole WTrCreateRoom WTrCreateSeatPlan WTrCreateShipping WTrCreateUser WTrDeductVoucher WTrDeleteCustomer WTrDeleteFlag WTrDeleteHost WTrDeleteOrderDocument WTrDeletePaymentType WTrDeleteRole WTrDeleteShipping WTrDeleteTemplate WTrDeleteUser WTrEmptyVoucher WTrGetAddress WTrGetAllArtists WTrGetAllContactTypes WTrGetAllCountries WTrGetAllCustomerNames WTrGetAllEvents WTrGetAllHostNames WTrGetAllHosts WTrGetAllPriceCategories WTrGetAllRightNames WTrGetAllRoles WTrGetAllRooms WTrGetAllSeatPlans WTrGetAllShipping WTrGetAllUsers WTrGetCoupon WTrGetCouponList WTrGetCreateCustomerHints WTrGetCustomer WTrGetEntranceEvents WTrGetEvent WTrGetEventList WTrGetEventSaleInfo WTrGetEventSummary WTrGetLanguage WTrGetMyOrders WTrGetMyRights WTrGetMyRoles WTrGetOrder WTrGetOrderAudit WTrGetOrderByBarcode WTrGetOrderDocument WTrGetOrderDocumentNames WTrGetOrderList WTrGetOrdersByCoupon WTrGetOrdersByCustomer WTrGetOrdersByEvents WTrGetOrdersByUser WTrGetPaymentTypes WTrGetPrintAtHomeSettings WTrGetRole WTrGetTemplate WTrGetTemplateList WTrGetTicket WTrGetTicketAudit WTrGetUser WTrGetUserAudit WTrGetUserHosts WTrGetUserRoles WTrGetValidFlags WTrGetValidVoucherPrices WTrGetVoucher WTrGetVoucherAudit WTrLogin WTrLogout WTrOrderAddComment WTrOrderChangeComments WTrOrderChangeShipping WTrOrderMarkShipped WTrOrderPay WTrOrderRefund WTrReservationToOrder WTrResetCustomerPassword WTrRestoreBackup WTrReturnTicketVoucher WTrSendCustomerMail WTrServerInfo WTrSetDefaultPaymentType WTrSetFlag WTrSetHost WTrSetOrderDocument WTrSetPaymentType WTrSetPrintAtHomeSettings WTrSetRoleDescription WTrSetRoleFlags WTrSetRoleRights WTrSetTemplate WTrSetTemplateDescription WTrSetTemplateFlags WTrSetUserDescription WTrSetUserFlags WTrSetUserHosts WTrSetUserRoles WTrUpdateSeatPlan WTrUseTicket WTrUseVoucher WTrWebCartAddCoupon WTrWebCartAddTicket WTrWebCartAddVoucher WTrWebCartRemoveTicket WTrWebCartRemoveVoucher

Public Member Functions

 abortWithError ($text, $type="server")
 called to abort a transactions flow More...
 
 getHeader ($hd)
 called to determine the session id or other headers More...
 
 handleException ($ex)
 called for generic exception handling More...
 
 notAuthenticated ()
 called if authentication fails More...
 
 xmlParserError ()
 called if XML parsing fails More...
 

Static Public Member Functions

static debug ($str, $level=self::DebugMisc)
 inserts a comment as debug statement More...
 
static getDebug ()
 return debug comment now (called from xmlToString() and TransactionError More...
 
static getExecutingName ()
 returns the name of the currently running transaction More...
 
static getInstance ()
 returns the currently running instance of a transaction More...
 
static getTransactionNameSoap ()
 called to determine the correct transaction, aborts the script if there is none. More...
 
static getTransactionNameWob ()
 Wob message encoding: called to determine the correct transaction, aborts the script if there is none. More...
 
static noSuchTransaction ()
 called if the transaction is not known. More...
 
static printDebug ()
 print debug comment now (called from xmlToString() and TransactionError More...
 
static setDebugLevel ($level)
 set the debug level of the server More...
 

Public Attributes

const DebugAll = 0x0ffffff
 activate all debug (used only in setDebugLevel()) More...
 
const DebugDbAll = 0x00000ff
 output all database related actions (used only in setDebugLevel()) More...
 
const DebugDbError = 0x0000001
 debug database errors More...
 
const DebugDbQuery = 0x0000002
 debug database queries when they are executed More...
 
const DebugDbStatement = 0x0000004
 debug database statements when they are constructed More...
 
const DebugDbTransaction = 0x0000008
 debug database transaction start/end More...
 
const DebugMisc = 0x0800000
 miscellaneous debug output (default level) More...
 
const DebugNone = 0
 no debugging (used only in setDebugLevel()) More...
 
const DebugTransactions = 0x0000100
 debug transaction related actions More...
 
const DebugUrgent = 0x1000000
 flag: output the debug string immediately (risks losing headers, used only in debug()) More...
 
const Soap12Encoding =1
 encode messages in a mode compatible with SOAP 1.2, which is much less effective than WobEncoding More...
 
const WobEncoding =0
 encode messages according to PACK standard - with minimal XML levels More...
 

Protected Member Functions

 __construct ()
 
 abortNotImplemented ()
 called internally if a transaction is not implemented More...
 
 abortTransaction ()
 stub: overwrite this to implement a real transaction abort action (eg. More...
 
 commitTransaction ()
 stub: overwrite this to implement a real transaction commit action (eg. More...
 
 getRequestXml ()
 retrieves the XML data from the request and parses headers More...
 
 isAuthenticated ()
 stub: returns whether the user is authenticated, overwrite if you want to use authenticated or authorized transactions More...
 
 isAuthorized ($transactioName)
 stub: returns whether the user is authorized to run a specific transaction, overwrite if you want to use authorized transactions More...
 
 startTransaction ($updating)
 stub: overwrite this to implement a real transaction start action (eg. More...
 
 userName ()
 stub: returns the name of the user (default returns empty string) More...
 
 xmlCreate ($elem)
 internal: returns an initialized XML array ("doc"=>DomDocument, "root"=>transaction rool DomElement) More...
 
 xmlToString ($xml)
 internal: converts XML array to string representation More...
 

Protected Attributes

 $ainput
 
 $aoutput
 
 $headers =array()
 
 $tinput
 
 $toutput
 

Static Protected Attributes

static $debuglev =0
 
static $debugstr =""
 
static $instance =null
 
static $running =""
 

Detailed Description

Ancestor of all Transactions.

Constructor & Destructor Documentation

WobTransactionBase::__construct ( )
protected

Member Function Documentation

WobTransactionBase::abortNotImplemented ( )
protected

called internally if a transaction is not implemented

References abortWithError(), and tr().

WobTransactionBase::abortTransaction ( )
protected

stub: overwrite this to implement a real transaction abort action (eg.

sending the DB a "ROLLBACK TRANSACTION" statement)

Referenced by abortWithError(), handleException(), noSuchTransaction(), notAuthenticated(), and xmlParserError().

WobTransactionBase::abortWithError (   $text,
  $type = "server" 
)

called to abort a transactions flow

Parameters
$typeoptional defines the source of the error (should be only one word, defaults to "server")
$textthe human readable text returned to the client

References abortTransaction().

Referenced by abortNotImplemented().

WobTransactionBase::commitTransaction ( )
protected

stub: overwrite this to implement a real transaction commit action (eg.

sending the DB a "COMMIT TRANSACTION" statement)

static WobTransactionBase::getDebug ( )
static

return debug comment now (called from xmlToString() and TransactionError

static WobTransactionBase::getExecutingName ( )
static

returns the name of the currently running transaction

Referenced by WTitem_audit\newKey(), WTvoucher_audit\newKey(), WTticket_audit\newKey(), and WTorder_audit\newKey().

WobTransactionBase::getHeader (   $hd)

called to determine the session id or other headers

static WobTransactionBase::getInstance ( )
static

returns the currently running instance of a transaction

Referenced by WOVoucher\getTransactionComment().

WobTransactionBase::getRequestXml ( )
protected

retrieves the XML data from the request and parses headers

References xmlParserError().

Referenced by WTrBackup\handleRequest(), WTrWebCartRemoveVoucher\handleRequest(), WTrWebCartRemoveTicket\handleRequest(), WTrWebCartAddVoucher\handleRequest(), WTrWebCartAddTicket\handleRequest(), WTrWebCartAddCoupon\handleRequest(), WTrUseVoucher\handleRequest(), WTrUseTicket\handleRequest(), WTrUpdateSeatPlan\handleRequest(), WTrSetUserRoles\handleRequest(), WTrSetUserHosts\handleRequest(), WTrSetUserFlags\handleRequest(), WTrSetUserDescription\handleRequest(), WTrSetTemplateFlags\handleRequest(), WTrSetTemplateDescription\handleRequest(), WTrSetTemplate\handleRequest(), WTrSetRoleRights\handleRequest(), WTrSetRoleFlags\handleRequest(), WTrSetRoleDescription\handleRequest(), WTrSetPrintAtHomeSettings\handleRequest(), WTrSetPaymentType\handleRequest(), WTrSetOrderDocument\handleRequest(), WTrSetHost\handleRequest(), WTrSetFlag\handleRequest(), WTrSetDefaultPaymentType\handleRequest(), WTrServerInfo\handleRequest(), WTrSendCustomerMail\handleRequest(), WTrReturnTicketVoucher\handleRequest(), WTrRestoreBackup\handleRequest(), WTrResetCustomerPassword\handleRequest(), WTrReservationToOrder\handleRequest(), WTrOrderRefund\handleRequest(), WTrOrderPay\handleRequest(), WTrOrderMarkShipped\handleRequest(), WTrOrderChangeShipping\handleRequest(), WTrOrderChangeComments\handleRequest(), WTrOrderAddComment\handleRequest(), WTrLogout\handleRequest(), WTrLogin\handleRequest(), WTrGetVoucherAudit\handleRequest(), WTrGetVoucher\handleRequest(), WTrGetValidVoucherPrices\handleRequest(), WTrGetValidFlags\handleRequest(), WTrGetUserRoles\handleRequest(), WTrGetUserHosts\handleRequest(), WTrGetUserAudit\handleRequest(), WTrGetUser\handleRequest(), WTrGetTicketAudit\handleRequest(), WTrGetTicket\handleRequest(), WTrGetTemplateList\handleRequest(), WTrGetTemplate\handleRequest(), WTrGetRole\handleRequest(), WTrGetPrintAtHomeSettings\handleRequest(), WTrGetPaymentTypes\handleRequest(), WTrGetOrdersByUser\handleRequest(), WTrGetOrdersByEvents\handleRequest(), WTrGetOrdersByCustomer\handleRequest(), WTrGetOrdersByCoupon\handleRequest(), WTrGetOrderList\handleRequest(), WTrGetOrderDocumentNames\handleRequest(), WTrGetOrderDocument\handleRequest(), WTrGetOrderByBarcode\handleRequest(), WTrGetOrderAudit\handleRequest(), WTrGetOrder\handleRequest(), WTrGetMyRoles\handleRequest(), WTrGetMyRights\handleRequest(), WTrGetMyOrders\handleRequest(), WTrGetLanguage\handleRequest(), WTrGetEventSummary\handleRequest(), WTrGetEventSaleInfo\handleRequest(), WTrGetEventList\handleRequest(), WTrGetEvent\handleRequest(), WTrGetEntranceEvents\handleRequest(), WTrGetCustomer\handleRequest(), WTrGetCreateCustomerHints\handleRequest(), WTrGetCouponList\handleRequest(), WTrGetCoupon\handleRequest(), WTrGetAllUsers\handleRequest(), WTrGetAllShipping\handleRequest(), WTrGetAllSeatPlans\handleRequest(), WTrGetAllRooms\handleRequest(), WTrGetAllRoles\handleRequest(), WTrGetAllRightNames\handleRequest(), WTrGetAllPriceCategories\handleRequest(), WTrGetAllHosts\handleRequest(), WTrGetAllHostNames\handleRequest(), WTrGetAllEvents\handleRequest(), WTrGetAllCustomerNames\handleRequest(), WTrGetAllCountries\handleRequest(), WTrGetAllContactTypes\handleRequest(), WTrGetAllArtists\handleRequest(), WTrGetAddress\handleRequest(), WTrEmptyVoucher\handleRequest(), WTrDeleteUser\handleRequest(), WTrDeleteTemplate\handleRequest(), WTrDeleteShipping\handleRequest(), WTrDeleteRole\handleRequest(), WTrDeletePaymentType\handleRequest(), WTrDeleteOrderDocument\handleRequest(), WTrDeleteHost\handleRequest(), WTrDeleteFlag\handleRequest(), WTrDeleteCustomer\handleRequest(), WTrDeductVoucher\handleRequest(), WTrCreateUser\handleRequest(), WTrCreateShipping\handleRequest(), WTrCreateSeatPlan\handleRequest(), WTrCreateRoom\handleRequest(), WTrCreateRole\handleRequest(), WTrCreateReservation\handleRequest(), WTrCreatePriceCategory\handleRequest(), WTrCreateOrder\handleRequest(), WTrCreateEvent\handleRequest(), WTrCreateCustomer\handleRequest(), WTrCreateCoupon\handleRequest(), WTrCreateCountry\handleRequest(), WTrCreateContactType\handleRequest(), WTrCreateArtist\handleRequest(), WTrChangeVoucherValidity\handleRequest(), WTrChangeTicketPriceCategory\handleRequest(), WTrChangeTicketPrice\handleRequest(), WTrChangeShipping\handleRequest(), WTrChangePriceCategory\handleRequest(), WTrChangePassword\handleRequest(), WTrChangeOrderAddress\handleRequest(), WTrChangeMyPassword\handleRequest(), WTrChangeEvent\handleRequest(), WTrChangeCustomerMail\handleRequest(), WTrChangeCustomer\handleRequest(), WTrChangeCoupon\handleRequest(), WTrCancelOrder\handleRequest(), WTrCancelEvent\handleRequest(), WTrBackupTable\handleRequest(), and WTrBackupExplore\handleRequest().

static WobTransactionBase::getTransactionNameSoap ( )
static

called to determine the correct transaction, aborts the script if there is none.

References tr().

static WobTransactionBase::getTransactionNameWob ( )
static

Wob message encoding: called to determine the correct transaction, aborts the script if there is none.

References tr().

WobTransactionBase::handleException (   $ex)

called for generic exception handling

References abortTransaction().

Referenced by WTrBackup\handleRequest(), WTrWebCartRemoveVoucher\handleRequest(), WTrWebCartRemoveTicket\handleRequest(), WTrWebCartAddVoucher\handleRequest(), WTrWebCartAddTicket\handleRequest(), WTrWebCartAddCoupon\handleRequest(), WTrUseVoucher\handleRequest(), WTrUseTicket\handleRequest(), WTrUpdateSeatPlan\handleRequest(), WTrSetUserRoles\handleRequest(), WTrSetUserHosts\handleRequest(), WTrSetUserFlags\handleRequest(), WTrSetUserDescription\handleRequest(), WTrSetTemplateFlags\handleRequest(), WTrSetTemplateDescription\handleRequest(), WTrSetTemplate\handleRequest(), WTrSetRoleRights\handleRequest(), WTrSetRoleFlags\handleRequest(), WTrSetRoleDescription\handleRequest(), WTrSetPrintAtHomeSettings\handleRequest(), WTrSetPaymentType\handleRequest(), WTrSetOrderDocument\handleRequest(), WTrSetHost\handleRequest(), WTrSetFlag\handleRequest(), WTrSetDefaultPaymentType\handleRequest(), WTrServerInfo\handleRequest(), WTrSendCustomerMail\handleRequest(), WTrReturnTicketVoucher\handleRequest(), WTrRestoreBackup\handleRequest(), WTrResetCustomerPassword\handleRequest(), WTrReservationToOrder\handleRequest(), WTrOrderRefund\handleRequest(), WTrOrderPay\handleRequest(), WTrOrderMarkShipped\handleRequest(), WTrOrderChangeShipping\handleRequest(), WTrOrderChangeComments\handleRequest(), WTrOrderAddComment\handleRequest(), WTrLogout\handleRequest(), WTrLogin\handleRequest(), WTrGetVoucherAudit\handleRequest(), WTrGetVoucher\handleRequest(), WTrGetValidVoucherPrices\handleRequest(), WTrGetValidFlags\handleRequest(), WTrGetUserRoles\handleRequest(), WTrGetUserHosts\handleRequest(), WTrGetUserAudit\handleRequest(), WTrGetUser\handleRequest(), WTrGetTicketAudit\handleRequest(), WTrGetTicket\handleRequest(), WTrGetTemplateList\handleRequest(), WTrGetTemplate\handleRequest(), WTrGetRole\handleRequest(), WTrGetPrintAtHomeSettings\handleRequest(), WTrGetPaymentTypes\handleRequest(), WTrGetOrdersByUser\handleRequest(), WTrGetOrdersByEvents\handleRequest(), WTrGetOrdersByCustomer\handleRequest(), WTrGetOrdersByCoupon\handleRequest(), WTrGetOrderList\handleRequest(), WTrGetOrderDocumentNames\handleRequest(), WTrGetOrderDocument\handleRequest(), WTrGetOrderByBarcode\handleRequest(), WTrGetOrderAudit\handleRequest(), WTrGetOrder\handleRequest(), WTrGetMyRoles\handleRequest(), WTrGetMyRights\handleRequest(), WTrGetMyOrders\handleRequest(), WTrGetLanguage\handleRequest(), WTrGetEventSummary\handleRequest(), WTrGetEventSaleInfo\handleRequest(), WTrGetEventList\handleRequest(), WTrGetEvent\handleRequest(), WTrGetEntranceEvents\handleRequest(), WTrGetCustomer\handleRequest(), WTrGetCreateCustomerHints\handleRequest(), WTrGetCouponList\handleRequest(), WTrGetCoupon\handleRequest(), WTrGetAllUsers\handleRequest(), WTrGetAllShipping\handleRequest(), WTrGetAllSeatPlans\handleRequest(), WTrGetAllRooms\handleRequest(), WTrGetAllRoles\handleRequest(), WTrGetAllRightNames\handleRequest(), WTrGetAllPriceCategories\handleRequest(), WTrGetAllHosts\handleRequest(), WTrGetAllHostNames\handleRequest(), WTrGetAllEvents\handleRequest(), WTrGetAllCustomerNames\handleRequest(), WTrGetAllCountries\handleRequest(), WTrGetAllContactTypes\handleRequest(), WTrGetAllArtists\handleRequest(), WTrGetAddress\handleRequest(), WTrEmptyVoucher\handleRequest(), WTrDeleteUser\handleRequest(), WTrDeleteTemplate\handleRequest(), WTrDeleteShipping\handleRequest(), WTrDeleteRole\handleRequest(), WTrDeletePaymentType\handleRequest(), WTrDeleteOrderDocument\handleRequest(), WTrDeleteHost\handleRequest(), WTrDeleteFlag\handleRequest(), WTrDeleteCustomer\handleRequest(), WTrDeductVoucher\handleRequest(), WTrCreateUser\handleRequest(), WTrCreateShipping\handleRequest(), WTrCreateSeatPlan\handleRequest(), WTrCreateRoom\handleRequest(), WTrCreateRole\handleRequest(), WTrCreateReservation\handleRequest(), WTrCreatePriceCategory\handleRequest(), WTrCreateOrder\handleRequest(), WTrCreateEvent\handleRequest(), WTrCreateCustomer\handleRequest(), WTrCreateCoupon\handleRequest(), WTrCreateCountry\handleRequest(), WTrCreateContactType\handleRequest(), WTrCreateArtist\handleRequest(), WTrChangeVoucherValidity\handleRequest(), WTrChangeTicketPriceCategory\handleRequest(), WTrChangeTicketPrice\handleRequest(), WTrChangeShipping\handleRequest(), WTrChangePriceCategory\handleRequest(), WTrChangePassword\handleRequest(), WTrChangeOrderAddress\handleRequest(), WTrChangeMyPassword\handleRequest(), WTrChangeEvent\handleRequest(), WTrChangeCustomerMail\handleRequest(), WTrChangeCustomer\handleRequest(), WTrChangeCoupon\handleRequest(), WTrCancelOrder\handleRequest(), WTrCancelEvent\handleRequest(), WTrBackupTable\handleRequest(), and WTrBackupExplore\handleRequest().

WobTransactionBase::isAuthenticated ( )
protected

stub: returns whether the user is authenticated, overwrite if you want to use authenticated or authorized transactions

WobTransactionBase::isAuthorized (   $transactioName)
protected

stub: returns whether the user is authorized to run a specific transaction, overwrite if you want to use authorized transactions

static WobTransactionBase::noSuchTransaction ( )
static

called if the transaction is not known.

aborts the script.

References abortTransaction(), and tr().

Referenced by WobTransaction\handle().

WobTransactionBase::notAuthenticated ( )

called if authentication fails

References abortTransaction(), and tr().

Referenced by WTrBackup\handleRequest(), WTrWebCartRemoveVoucher\handleRequest(), WTrWebCartRemoveTicket\handleRequest(), WTrWebCartAddVoucher\handleRequest(), WTrWebCartAddTicket\handleRequest(), WTrWebCartAddCoupon\handleRequest(), WTrUseVoucher\handleRequest(), WTrUseTicket\handleRequest(), WTrUpdateSeatPlan\handleRequest(), WTrSetUserRoles\handleRequest(), WTrSetUserHosts\handleRequest(), WTrSetUserFlags\handleRequest(), WTrSetUserDescription\handleRequest(), WTrSetTemplateFlags\handleRequest(), WTrSetTemplateDescription\handleRequest(), WTrSetTemplate\handleRequest(), WTrSetRoleRights\handleRequest(), WTrSetRoleFlags\handleRequest(), WTrSetRoleDescription\handleRequest(), WTrSetPrintAtHomeSettings\handleRequest(), WTrSetPaymentType\handleRequest(), WTrSetOrderDocument\handleRequest(), WTrSetHost\handleRequest(), WTrSetFlag\handleRequest(), WTrSetDefaultPaymentType\handleRequest(), WTrSendCustomerMail\handleRequest(), WTrReturnTicketVoucher\handleRequest(), WTrRestoreBackup\handleRequest(), WTrResetCustomerPassword\handleRequest(), WTrReservationToOrder\handleRequest(), WTrOrderRefund\handleRequest(), WTrOrderPay\handleRequest(), WTrOrderMarkShipped\handleRequest(), WTrOrderChangeShipping\handleRequest(), WTrOrderChangeComments\handleRequest(), WTrOrderAddComment\handleRequest(), WTrLogout\handleRequest(), WTrGetVoucherAudit\handleRequest(), WTrGetVoucher\handleRequest(), WTrGetValidVoucherPrices\handleRequest(), WTrGetValidFlags\handleRequest(), WTrGetUserRoles\handleRequest(), WTrGetUserHosts\handleRequest(), WTrGetUserAudit\handleRequest(), WTrGetUser\handleRequest(), WTrGetTicketAudit\handleRequest(), WTrGetTicket\handleRequest(), WTrGetTemplateList\handleRequest(), WTrGetTemplate\handleRequest(), WTrGetRole\handleRequest(), WTrGetPrintAtHomeSettings\handleRequest(), WTrGetPaymentTypes\handleRequest(), WTrGetOrdersByUser\handleRequest(), WTrGetOrdersByEvents\handleRequest(), WTrGetOrdersByCustomer\handleRequest(), WTrGetOrdersByCoupon\handleRequest(), WTrGetOrderList\handleRequest(), WTrGetOrderDocumentNames\handleRequest(), WTrGetOrderDocument\handleRequest(), WTrGetOrderByBarcode\handleRequest(), WTrGetOrderAudit\handleRequest(), WTrGetOrder\handleRequest(), WTrGetMyRoles\handleRequest(), WTrGetMyRights\handleRequest(), WTrGetMyOrders\handleRequest(), WTrGetLanguage\handleRequest(), WTrGetEventSummary\handleRequest(), WTrGetEventSaleInfo\handleRequest(), WTrGetEventList\handleRequest(), WTrGetEvent\handleRequest(), WTrGetEntranceEvents\handleRequest(), WTrGetCustomer\handleRequest(), WTrGetCreateCustomerHints\handleRequest(), WTrGetCouponList\handleRequest(), WTrGetCoupon\handleRequest(), WTrGetAllUsers\handleRequest(), WTrGetAllShipping\handleRequest(), WTrGetAllSeatPlans\handleRequest(), WTrGetAllRooms\handleRequest(), WTrGetAllRoles\handleRequest(), WTrGetAllRightNames\handleRequest(), WTrGetAllPriceCategories\handleRequest(), WTrGetAllHosts\handleRequest(), WTrGetAllHostNames\handleRequest(), WTrGetAllEvents\handleRequest(), WTrGetAllCustomerNames\handleRequest(), WTrGetAllCountries\handleRequest(), WTrGetAllContactTypes\handleRequest(), WTrGetAllArtists\handleRequest(), WTrGetAddress\handleRequest(), WTrEmptyVoucher\handleRequest(), WTrDeleteUser\handleRequest(), WTrDeleteTemplate\handleRequest(), WTrDeleteShipping\handleRequest(), WTrDeleteRole\handleRequest(), WTrDeletePaymentType\handleRequest(), WTrDeleteOrderDocument\handleRequest(), WTrDeleteHost\handleRequest(), WTrDeleteFlag\handleRequest(), WTrDeleteCustomer\handleRequest(), WTrDeductVoucher\handleRequest(), WTrCreateUser\handleRequest(), WTrCreateShipping\handleRequest(), WTrCreateSeatPlan\handleRequest(), WTrCreateRoom\handleRequest(), WTrCreateRole\handleRequest(), WTrCreateReservation\handleRequest(), WTrCreatePriceCategory\handleRequest(), WTrCreateOrder\handleRequest(), WTrCreateEvent\handleRequest(), WTrCreateCustomer\handleRequest(), WTrCreateCoupon\handleRequest(), WTrCreateCountry\handleRequest(), WTrCreateContactType\handleRequest(), WTrCreateArtist\handleRequest(), WTrChangeVoucherValidity\handleRequest(), WTrChangeTicketPriceCategory\handleRequest(), WTrChangeTicketPrice\handleRequest(), WTrChangeShipping\handleRequest(), WTrChangePriceCategory\handleRequest(), WTrChangePassword\handleRequest(), WTrChangeOrderAddress\handleRequest(), WTrChangeMyPassword\handleRequest(), WTrChangeEvent\handleRequest(), WTrChangeCustomerMail\handleRequest(), WTrChangeCustomer\handleRequest(), WTrChangeCoupon\handleRequest(), WTrCancelOrder\handleRequest(), WTrCancelEvent\handleRequest(), WTrBackupTable\handleRequest(), and WTrBackupExplore\handleRequest().

static WobTransactionBase::printDebug ( )
static

print debug comment now (called from xmlToString() and TransactionError

Referenced by TransactionError\printXml().

static WobTransactionBase::setDebugLevel (   $level)
static

set the debug level of the server

WobTransactionBase::startTransaction (   $updating)
protected

stub: overwrite this to implement a real transaction start action (eg.

sending the DB a "BEGIN TRANSACTION" statement); the $updating parameter is set to true for transactions marked as updating

WobTransactionBase::userName ( )
protected

stub: returns the name of the user (default returns empty string)

WobTransactionBase::xmlCreate (   $elem)
protected

internal: returns an initialized XML array ("doc"=>DomDocument, "root"=>transaction rool DomElement)

Referenced by WTrBackup\handleRequest(), WTrWebCartRemoveVoucher\handleRequest(), WTrWebCartRemoveTicket\handleRequest(), WTrWebCartAddVoucher\handleRequest(), WTrWebCartAddTicket\handleRequest(), WTrWebCartAddCoupon\handleRequest(), WTrUseVoucher\handleRequest(), WTrUseTicket\handleRequest(), WTrUpdateSeatPlan\handleRequest(), WTrSetUserRoles\handleRequest(), WTrSetUserHosts\handleRequest(), WTrSetUserFlags\handleRequest(), WTrSetUserDescription\handleRequest(), WTrSetTemplateFlags\handleRequest(), WTrSetTemplateDescription\handleRequest(), WTrSetTemplate\handleRequest(), WTrSetRoleRights\handleRequest(), WTrSetRoleFlags\handleRequest(), WTrSetRoleDescription\handleRequest(), WTrSetPrintAtHomeSettings\handleRequest(), WTrSetPaymentType\handleRequest(), WTrSetOrderDocument\handleRequest(), WTrSetHost\handleRequest(), WTrSetFlag\handleRequest(), WTrSetDefaultPaymentType\handleRequest(), WTrServerInfo\handleRequest(), WTrSendCustomerMail\handleRequest(), WTrReturnTicketVoucher\handleRequest(), WTrRestoreBackup\handleRequest(), WTrResetCustomerPassword\handleRequest(), WTrReservationToOrder\handleRequest(), WTrOrderRefund\handleRequest(), WTrOrderPay\handleRequest(), WTrOrderMarkShipped\handleRequest(), WTrOrderChangeShipping\handleRequest(), WTrOrderChangeComments\handleRequest(), WTrOrderAddComment\handleRequest(), WTrLogout\handleRequest(), WTrLogin\handleRequest(), WTrGetVoucherAudit\handleRequest(), WTrGetVoucher\handleRequest(), WTrGetValidVoucherPrices\handleRequest(), WTrGetValidFlags\handleRequest(), WTrGetUserRoles\handleRequest(), WTrGetUserHosts\handleRequest(), WTrGetUserAudit\handleRequest(), WTrGetUser\handleRequest(), WTrGetTicketAudit\handleRequest(), WTrGetTicket\handleRequest(), WTrGetTemplateList\handleRequest(), WTrGetTemplate\handleRequest(), WTrGetRole\handleRequest(), WTrGetPrintAtHomeSettings\handleRequest(), WTrGetPaymentTypes\handleRequest(), WTrGetOrdersByUser\handleRequest(), WTrGetOrdersByEvents\handleRequest(), WTrGetOrdersByCustomer\handleRequest(), WTrGetOrdersByCoupon\handleRequest(), WTrGetOrderList\handleRequest(), WTrGetOrderDocumentNames\handleRequest(), WTrGetOrderDocument\handleRequest(), WTrGetOrderByBarcode\handleRequest(), WTrGetOrderAudit\handleRequest(), WTrGetOrder\handleRequest(), WTrGetMyRoles\handleRequest(), WTrGetMyRights\handleRequest(), WTrGetMyOrders\handleRequest(), WTrGetLanguage\handleRequest(), WTrGetEventSummary\handleRequest(), WTrGetEventSaleInfo\handleRequest(), WTrGetEventList\handleRequest(), WTrGetEvent\handleRequest(), WTrGetEntranceEvents\handleRequest(), WTrGetCustomer\handleRequest(), WTrGetCreateCustomerHints\handleRequest(), WTrGetCouponList\handleRequest(), WTrGetCoupon\handleRequest(), WTrGetAllUsers\handleRequest(), WTrGetAllShipping\handleRequest(), WTrGetAllSeatPlans\handleRequest(), WTrGetAllRooms\handleRequest(), WTrGetAllRoles\handleRequest(), WTrGetAllRightNames\handleRequest(), WTrGetAllPriceCategories\handleRequest(), WTrGetAllHosts\handleRequest(), WTrGetAllHostNames\handleRequest(), WTrGetAllEvents\handleRequest(), WTrGetAllCustomerNames\handleRequest(), WTrGetAllCountries\handleRequest(), WTrGetAllContactTypes\handleRequest(), WTrGetAllArtists\handleRequest(), WTrGetAddress\handleRequest(), WTrEmptyVoucher\handleRequest(), WTrDeleteUser\handleRequest(), WTrDeleteTemplate\handleRequest(), WTrDeleteShipping\handleRequest(), WTrDeleteRole\handleRequest(), WTrDeletePaymentType\handleRequest(), WTrDeleteOrderDocument\handleRequest(), WTrDeleteHost\handleRequest(), WTrDeleteFlag\handleRequest(), WTrDeleteCustomer\handleRequest(), WTrDeductVoucher\handleRequest(), WTrCreateUser\handleRequest(), WTrCreateShipping\handleRequest(), WTrCreateSeatPlan\handleRequest(), WTrCreateRoom\handleRequest(), WTrCreateRole\handleRequest(), WTrCreateReservation\handleRequest(), WTrCreatePriceCategory\handleRequest(), WTrCreateOrder\handleRequest(), WTrCreateEvent\handleRequest(), WTrCreateCustomer\handleRequest(), WTrCreateCoupon\handleRequest(), WTrCreateCountry\handleRequest(), WTrCreateContactType\handleRequest(), WTrCreateArtist\handleRequest(), WTrChangeVoucherValidity\handleRequest(), WTrChangeTicketPriceCategory\handleRequest(), WTrChangeTicketPrice\handleRequest(), WTrChangeShipping\handleRequest(), WTrChangePriceCategory\handleRequest(), WTrChangePassword\handleRequest(), WTrChangeOrderAddress\handleRequest(), WTrChangeMyPassword\handleRequest(), WTrChangeEvent\handleRequest(), WTrChangeCustomerMail\handleRequest(), WTrChangeCustomer\handleRequest(), WTrChangeCoupon\handleRequest(), WTrCancelOrder\handleRequest(), WTrCancelEvent\handleRequest(), WTrBackupTable\handleRequest(), and WTrBackupExplore\handleRequest().

WobTransactionBase::xmlParserError ( )

called if XML parsing fails

References abortTransaction(), and tr().

Referenced by getRequestXml().

WobTransactionBase::xmlToString (   $xml)
protected

internal: converts XML array to string representation

Referenced by WTrBackup\handleRequest(), WTrWebCartRemoveVoucher\handleRequest(), WTrWebCartRemoveTicket\handleRequest(), WTrWebCartAddVoucher\handleRequest(), WTrWebCartAddTicket\handleRequest(), WTrWebCartAddCoupon\handleRequest(), WTrUseVoucher\handleRequest(), WTrUseTicket\handleRequest(), WTrUpdateSeatPlan\handleRequest(), WTrSetUserRoles\handleRequest(), WTrSetUserHosts\handleRequest(), WTrSetUserFlags\handleRequest(), WTrSetUserDescription\handleRequest(), WTrSetTemplateFlags\handleRequest(), WTrSetTemplateDescription\handleRequest(), WTrSetTemplate\handleRequest(), WTrSetRoleRights\handleRequest(), WTrSetRoleFlags\handleRequest(), WTrSetRoleDescription\handleRequest(), WTrSetPrintAtHomeSettings\handleRequest(), WTrSetPaymentType\handleRequest(), WTrSetOrderDocument\handleRequest(), WTrSetHost\handleRequest(), WTrSetFlag\handleRequest(), WTrSetDefaultPaymentType\handleRequest(), WTrServerInfo\handleRequest(), WTrSendCustomerMail\handleRequest(), WTrReturnTicketVoucher\handleRequest(), WTrRestoreBackup\handleRequest(), WTrResetCustomerPassword\handleRequest(), WTrReservationToOrder\handleRequest(), WTrOrderRefund\handleRequest(), WTrOrderPay\handleRequest(), WTrOrderMarkShipped\handleRequest(), WTrOrderChangeShipping\handleRequest(), WTrOrderChangeComments\handleRequest(), WTrOrderAddComment\handleRequest(), WTrLogout\handleRequest(), WTrLogin\handleRequest(), WTrGetVoucherAudit\handleRequest(), WTrGetVoucher\handleRequest(), WTrGetValidVoucherPrices\handleRequest(), WTrGetValidFlags\handleRequest(), WTrGetUserRoles\handleRequest(), WTrGetUserHosts\handleRequest(), WTrGetUserAudit\handleRequest(), WTrGetUser\handleRequest(), WTrGetTicketAudit\handleRequest(), WTrGetTicket\handleRequest(), WTrGetTemplateList\handleRequest(), WTrGetTemplate\handleRequest(), WTrGetRole\handleRequest(), WTrGetPrintAtHomeSettings\handleRequest(), WTrGetPaymentTypes\handleRequest(), WTrGetOrdersByUser\handleRequest(), WTrGetOrdersByEvents\handleRequest(), WTrGetOrdersByCustomer\handleRequest(), WTrGetOrdersByCoupon\handleRequest(), WTrGetOrderList\handleRequest(), WTrGetOrderDocumentNames\handleRequest(), WTrGetOrderDocument\handleRequest(), WTrGetOrderByBarcode\handleRequest(), WTrGetOrderAudit\handleRequest(), WTrGetOrder\handleRequest(), WTrGetMyRoles\handleRequest(), WTrGetMyRights\handleRequest(), WTrGetMyOrders\handleRequest(), WTrGetLanguage\handleRequest(), WTrGetEventSummary\handleRequest(), WTrGetEventSaleInfo\handleRequest(), WTrGetEventList\handleRequest(), WTrGetEvent\handleRequest(), WTrGetEntranceEvents\handleRequest(), WTrGetCustomer\handleRequest(), WTrGetCreateCustomerHints\handleRequest(), WTrGetCouponList\handleRequest(), WTrGetCoupon\handleRequest(), WTrGetAllUsers\handleRequest(), WTrGetAllShipping\handleRequest(), WTrGetAllSeatPlans\handleRequest(), WTrGetAllRooms\handleRequest(), WTrGetAllRoles\handleRequest(), WTrGetAllRightNames\handleRequest(), WTrGetAllPriceCategories\handleRequest(), WTrGetAllHosts\handleRequest(), WTrGetAllHostNames\handleRequest(), WTrGetAllEvents\handleRequest(), WTrGetAllCustomerNames\handleRequest(), WTrGetAllCountries\handleRequest(), WTrGetAllContactTypes\handleRequest(), WTrGetAllArtists\handleRequest(), WTrGetAddress\handleRequest(), WTrEmptyVoucher\handleRequest(), WTrDeleteUser\handleRequest(), WTrDeleteTemplate\handleRequest(), WTrDeleteShipping\handleRequest(), WTrDeleteRole\handleRequest(), WTrDeletePaymentType\handleRequest(), WTrDeleteOrderDocument\handleRequest(), WTrDeleteHost\handleRequest(), WTrDeleteFlag\handleRequest(), WTrDeleteCustomer\handleRequest(), WTrDeductVoucher\handleRequest(), WTrCreateUser\handleRequest(), WTrCreateShipping\handleRequest(), WTrCreateSeatPlan\handleRequest(), WTrCreateRoom\handleRequest(), WTrCreateRole\handleRequest(), WTrCreateReservation\handleRequest(), WTrCreatePriceCategory\handleRequest(), WTrCreateOrder\handleRequest(), WTrCreateEvent\handleRequest(), WTrCreateCustomer\handleRequest(), WTrCreateCoupon\handleRequest(), WTrCreateCountry\handleRequest(), WTrCreateContactType\handleRequest(), WTrCreateArtist\handleRequest(), WTrChangeVoucherValidity\handleRequest(), WTrChangeTicketPriceCategory\handleRequest(), WTrChangeTicketPrice\handleRequest(), WTrChangeShipping\handleRequest(), WTrChangePriceCategory\handleRequest(), WTrChangePassword\handleRequest(), WTrChangeOrderAddress\handleRequest(), WTrChangeMyPassword\handleRequest(), WTrChangeEvent\handleRequest(), WTrChangeCustomerMail\handleRequest(), WTrChangeCustomer\handleRequest(), WTrChangeCoupon\handleRequest(), WTrCancelOrder\handleRequest(), WTrCancelEvent\handleRequest(), WTrBackupTable\handleRequest(), and WTrBackupExplore\handleRequest().

Member Data Documentation

WobTransactionBase::$ainput
protected
WobTransactionBase::$aoutput
protected
WobTransactionBase::$debuglev =0
staticprotected
WobTransactionBase::$debugstr =""
staticprotected
WobTransactionBase::$headers =array()
protected
WobTransactionBase::$instance =null
staticprotected
WobTransactionBase::$running =""
staticprotected
WobTransactionBase::$tinput
protected
WobTransactionBase::$toutput
protected
const WobTransactionBase::DebugAll = 0x0ffffff

activate all debug (used only in setDebugLevel())

const WobTransactionBase::DebugDbAll = 0x00000ff

output all database related actions (used only in setDebugLevel())

const WobTransactionBase::DebugDbError = 0x0000001

debug database errors

const WobTransactionBase::DebugDbQuery = 0x0000002
const WobTransactionBase::DebugDbStatement = 0x0000004

debug database statements when they are constructed

Referenced by DbEngine\sqlCreateTable(), DbEngine\sqlDelete(), DbEngine\sqlInsert(), DbEngine\sqlSelect(), and DbEngine\sqlUpdate().

const WobTransactionBase::DebugDbTransaction = 0x0000008
const WobTransactionBase::DebugMisc = 0x0800000

miscellaneous debug output (default level)

const WobTransactionBase::DebugNone = 0

no debugging (used only in setDebugLevel())

const WobTransactionBase::DebugTransactions = 0x0000100
const WobTransactionBase::DebugUrgent = 0x1000000

flag: output the debug string immediately (risks losing headers, used only in debug())

const WobTransactionBase::Soap12Encoding =1

encode messages in a mode compatible with SOAP 1.2, which is much less effective than WobEncoding

Referenced by WobSoapTransactionError\__construct(), and TransactionError\printXml().

const WobTransactionBase::WobEncoding =0

encode messages according to PACK standard - with minimal XML levels

Referenced by WobWobTransactionError\__construct().


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