View Single Post
  #20  
Old 29th May 2013, 16:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
Originally Posted by remy74 View Post
In fact, we just need to knows if there is a simple function to track which data was modified, after they are validate.
The data si saved in the onUpdateSave function of the tform_actions class. You can either completely override that function in case you want to store data in another source like a file, ldap or similar instaed of mysql or you override it and call the parent function after you executed your custom code.

Example:

Code:
myform extends tform_actions {

function onUpdateSave($sql) {

... do something ...

parent::onUpdateSave($sql);

}


}
if you want to get the changes of a record, use the diffrec function of the mysql library. This function is used by ispconfig to detect which differences have to be saved into the sys_datalog for processing on the server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 29th May 2013 at 16:22.
Reply With Quote