torstenroeder / flotilla

Flotilla PHP Framework for form and data evaluation.
http://flotilla.elitepiraten.de
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Logging changes to the database #11

Open Rillke opened 5 years ago

Rillke commented 5 years ago

The issue

Suggested solution

  1. The logging tables become official part of Zefiro.
  2. Hook: 2.1 Flotilla provides a hook registration function, that allows other frameworks and applications to hook-in - and get notified when any write operation on the database is performed. 2.2 Implementation Details: 2.2.1 Flotilla gets a hook-registration function allowing Zefiro to hook-in and a hook-run function that will call the hooked-in routines on certain events (e.g. database writes). 2.2.2 Hooking can be designed in a generic fashion. A static class might be sufficient. 2.2.3 Zefiro has to provide a (callback)function called when a hook is run and logs the updates in the log table and registers the hook with Flotilla.