projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63f4e8f
)
DataObjects/Images.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 8 Apr 2011 10:02:18 +0000
(18:02 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 8 Apr 2011 10:02:18 +0000
(18:02 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
6b6c976
..
4f68e09
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-261,6
+261,16
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
return $c->fetchAll();
}
+ /**
+ * creation - associate this image with a dataobject
+ * @param DB_DataObject $obj a dataobject
+ */
+ function associate($obj)
+ {
+ $this->ontable = $obj->tableName();
+ $this->onid = $obj->id; /// assumes our nice standard of using ids..
+
+ }
function toRooArray($req = array()) {