Public Member Functions | |
amountToPay () | |
returns the amount that is to be paid for this ticket: if it is to be paid it is equal to the price, otherwise zero | |
getevent () | |
helper to get the event data in templates | |
Static Public Member Functions | |
static | GetTicketAuditTransaction ($trans) |
GetTicketAudit transaction. | |
static | useTicket ($trans) |
called from the UseTicket transaction |
WOTicket::amountToPay | ( | ) |
returns the amount that is to be paid for this ticket: if it is to be paid it is equal to the price, otherwise zero
WOTicket::getevent | ( | ) |
helper to get the event data in templates
References WOEventAbstract::fromTableevent(), WOTicketAbstract::geteventid(), and WTevent::getFromDB().
static WOTicket::GetTicketAuditTransaction | ( | $ | trans | ) | [static] |
GetTicketAudit transaction.
References $db, WOEventAbstract::fromTableArrayevent(), WOTicketAuditAbstract::fromTableArrayticket_audit(), WTevent::selectFromDB(), and WTticket_audit::selectFromDB().
Referenced by WTrGetTicketAudit::handleRequest().
static WOTicket::useTicket | ( | $ | trans | ) | [static] |
called from the UseTicket transaction
References $db, WOTicketUse::AlreadyUsed, WOOrderAbstract::fromTableorder(), WOTicketAbstract::fromTableticket(), WTorder::getFromDB(), WTticket::getFromDB(), WTevent::getFromDB(), WOTicketUse::InvalidEvent, WTticket::MaskUsable, WOTicketUse::NotFound, WOTicketUse::NotUsable, WOTicketUse::Ok, WTticket::Ordered, WTticket::Reserved, WTticket::selectFromDB(), WOTicketUse::Unpaid, WTticket::Used, and WOTicketUse::WrongEvent.
Referenced by WTrUseTicket::handleRequest().