DHTMLX Connector uses events to manage Insert/Update/Delete operations.
The code below shows how to attach event:
$conn->event->attach(event_name,handlerFunc);
Parameters:
Handler functions get one input parameter and this parameter depends on attaching event.
In the following table you'll see a full list of events and the appropriate input parameters of handler functions.
| Event | Input parameter of handler function |
|---|---|
| beforeSort | SortInterface Object |
| beforeFilter | FilterInterface Object |
| beforeRender | DataItem Object |
| beforeProcessing afterProcessing beforeInsert beforeUpdate beforeDelete afterInsert afterUpdate afterDelete | DataAction Object |
| beforeOutput | none |