projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bcf2b10
)
Pman/Roo.php
author
Alan Knowles
<alan@akkbhome.com>
Wed, 17 Nov 2010 23:20:02 +0000
(07:20 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 17 Nov 2010 23:20:02 +0000
(07:20 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
37cfe2b
..
632d3ad
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-26,7
+26,7
@@
require_once 'Pman.php';
* - onUpload($roo)
* - setFromRoo($ar) - values from post (deal with dates etc.) - return true|error string.
*
* - onUpload($roo)
* - setFromRoo($ar) - values from post (deal with dates etc.) - return true|error string.
*
- * - toEventString (for logging)
+ * - toEventString (for logging
- this is generically prefixed to all database operations.
)
*/
class Pman_Roo extends Pman
*/
class Pman_Roo extends Pman
@@
-433,7
+433,7
@@
class Pman_Roo extends Pman
if (method_exists($x, 'onInsert')) {
$x->onInsert($_REQUEST, $this);
}
if (method_exists($x, 'onInsert')) {
$x->onInsert($_REQUEST, $this);
}
- $this->addEvent("ADD", $x
, $x->toEventString()
);
+ $this->addEvent("ADD", $x);
// note setFrom might handle this before hand...!??!
if (!empty($_FILES) && method_exists($x, 'onUpload')) {
// note setFrom might handle this before hand...!??!
if (!empty($_FILES) && method_exists($x, 'onUpload')) {
@@
-475,7
+475,7
@@
class Pman_Roo extends Pman
} else {
$x->setFrom($req);
}
} else {
$x->setFrom($req);
}
- $this->addEvent("EDIT", $x
, $x->toEventString()
);
+ $this->addEvent("EDIT", $x);
//print_r($x);
//print_r($old);
//print_r($x);
//print_r($old);
@@
-594,7
+594,7
@@
class Pman_Roo extends Pman
}
// finally log it..
}
// finally log it..
- $this->addEvent("DELETE", $x
, $x->toEventString()
);
+ $this->addEvent("DELETE", $x);
$xx->delete();
}
$xx->delete();
}