For data manipulations, tree offers Before and After events (after events doesn't have the 'after' prefix). most listeners receive an 'object' parameter that is the result of json_decode function. One of the object properties are id and type that are the 'id' of the object and its 'type'.Notice beforeCreate event doesn't have an 'id' yet
List of types:
Notice No events are tiggered for types 1 and 2 for now
CaseBox tree events:
In the example below, the event beforeNodeDBUpdate has a handler attached called onBeforeObjectSave located in ObjectHandler php class. The PHP file should be added to /cores/[core]/php/ folder. Notice that you can attach several handlers from different PHP classes.