Re: QuickForm: anyone have any examples of audit code that logs every edit / change to data?
| From: | Justin Patrin | Date: | Thu, 13 Jan 2005 23:24:40 +0000 |
| Subject: | Re: QuickForm: anyone have any examples of audit code that logs every edit / change to data? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16924@lists.php.net to get a copy of this message | ||
On Thu, 13 Jan 2005 11:27:57 -0800 (PST), l Burnerheimerton
<lburnerheimerton@yahoo.com> wrote:
> I have several forms in the app. I'd like to log
> every change the user makes to any data. Not every
> field on every edit, but only those where data has
> been changed.
>
> Does anyone have some example code or articles on
> this?
>
> ( I am using HTML_Quickform. )
>
I have a simple example here using DB_DataObject.
http://opensource.21st.de/tiki-index.php?page=Beyond+Advanced#id606974
I've also implemented a full system for storing changes to records by
overriding the update() method of a DB_DataObject. It's very useful
and pretty easy to do.
--
Justin Patrin