From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:37:46 +0000 (+0000) Subject: Add Purchase::type X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=dcce4211d525e04c202a32bdc2d2c9ff8742b17c;p=hmb.git Add Purchase::type --- diff --git a/index.php b/index.php index a2efad1..fc38e79 100644 --- a/index.php +++ b/index.php @@ -274,6 +274,12 @@ class Purchase { return $this->ticket; } + public function type(){ + $ticket = Ticket::Get($this->ticket); + $type = Type::Get($ticket->type()); + return $type->name(); + } + private $id; private $ticket; private $order;