Add Purchase::type
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:37:46 +0000 (23:37 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:37:46 +0000 (23:37 +0000)
index.php

index a2efad1682eb28d4182a6c5fe05b2695d359e9d4..fc38e794a28533318f7937ce1365b188788c60b4 100644 (file)
--- 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;