projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1388350
)
Add Purchase::type
author
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:37:46 +0000
(23:37 +0000)
committer
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:37:46 +0000
(23:37 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/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;