projects
/
Pman.Base
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pman/Roo.php
[Pman.Base]
/
Pman
/
Roo.php
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
1d77386
..
e116afa
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-32,7
+32,7
@@
require_once 'Pman.php';
* - beforeInsert($request,$roo) - before insert - jerr() will stop insert..
*
* AFTER
* - beforeInsert($request,$roo) - before insert - jerr() will stop insert..
*
* AFTER
- * - onUpdate($old, $request,$roo) - after update // return value ignored
+ * - onUpdate($old, $request,$roo
, $event
) - after update // return value ignored
* - onInsert($request,$roo, $event) - after insert
* - onDelete($req, $roo) - after delete
* - onUpload($roo)
* - onInsert($request,$roo, $event) - after insert
* - onDelete($req, $roo) - after delete
* - onUpload($roo)
@@
-1100,11
+1100,11
@@
class Pman_Roo extends Pman
if ($res === false) {
$this->jerr($x->_lastError->toString());
}
if ($res === false) {
$this->jerr($x->_lastError->toString());
}
-
+ $ev = $this->addEvent("EDIT", $x);
+
if (method_exists($x, 'onUpdate')) {
if (method_exists($x, 'onUpdate')) {
- $x->onUpdate($old, $req, $this);
+ $x->onUpdate($old, $req, $this
, $ev
);
}
}
- $ev = $this->addEvent("EDIT", $x);
if ($ev) {
$ev->audit($x, $old);
}
if ($ev) {
$ev->audit($x, $old);
}