From 24bf231c712b2943d27965f0ad7ab1e087549c59 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 18 Nov 2010 07:20:02 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Pman/Roo.php b/Pman/Roo.php index 37cfe2b..632d3ad 100644 --- 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. * - * - toEventString (for logging) + * - toEventString (for logging - this is generically prefixed to all database operations.) */ class Pman_Roo extends Pman @@ -433,7 +433,7 @@ class Pman_Roo extends Pman 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')) { @@ -475,7 +475,7 @@ class Pman_Roo extends Pman } else { $x->setFrom($req); } - $this->addEvent("EDIT", $x, $x->toEventString()); + $this->addEvent("EDIT", $x); //print_r($x); //print_r($old); @@ -594,7 +594,7 @@ class Pman_Roo extends Pman } // finally log it.. - $this->addEvent("DELETE", $x, $x->toEventString()); + $this->addEvent("DELETE", $x); $xx->delete(); } -- 2.39.2