projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4deea5
)
DataObjects/Events.php
author
Alan Knowles
<alan@roojs.com>
Thu, 6 Oct 2011 04:42:27 +0000
(12:42 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 6 Oct 2011 04:42:27 +0000
(12:42 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
baa5ab1
..
5c053d5
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-68,7
+68,20
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
}
// listing is controleed by applyfilters..
return $au->hasPerm("Admin.Admin_Tab", 'S');
- }
+ }
+ /**
+ * object : return the object that this relates to.
+ * @return {DB_DataObject} related object
+ */
+ function object()
+ {
+ $o = DB_DataObject::factory($this->on_table);
+ $o->get($this->on_id);
+ return $o;
+
+ }
+
+
/**
* init:
* Initialize an event - ready to insert..