projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a560f4
)
Ticket::type
author
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:43:39 +0000
(23:43 +0000)
committer
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:43:39 +0000
(23:43 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index 7ee4af7e2a00afcf7c5066ee5019a4d94b730eda..d7efa6fb996fe10e2f0f4b2286c8eb27e704b938 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-194,6
+194,13
@@
class Ticket {
return $this->id;
}
+ public function type(){
+ if(!isset($this->type)){
+ throw new Exception('Invalid Operation');
+ }
+ return $this->type;
+ }
+
// STATUS: 0 - FREE, 1 - ALLOCATED, 2 - SOLD
public static function Get_Free_Count_By_Type($type){