projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2e0199
)
Pman/Roo.php
author
Alan Knowles
<alan@roojs.com>
Mon, 29 Oct 2018 01:16:52 +0000
(09:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 29 Oct 2018 01:16:52 +0000
(09:16 +0800)
Pman/Roo.php
patch
|
blob
|
history
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);
}