Enhancement
Less fine grained event types for topics
Issue description
When programming triggers, it is currently necessary to do a lot of checks whether something exists and hook them to many events, since the events are statement based. It would be convenient to have less fine grained event types as well, e.g. 'topic saved'. Then one would have easier trigger code since the shape of the whole object is given through the constraints and all statements are already persisted in the store.
Developer comments
It is now possible to create _form triggers_ which execute a PHP trigger on the server side when a form is saved. There is four new event types: %BEFORE_SAVE_NEW%, %BEFORE_SAVE_OLD%, %AFTER_SAVE_NEW%, %AFTER_SAVE_OLD%.
It is currently not possible to access the form data that is transmitted (a topic map) in any way. This can be implemented at a later stage. Only the created/updated topic is available as a _tobject_.
Creating topics programmatically through the Topincs virtual OOP interface, does not trigger a form trigger. In other words form triggers only run when a topic form is saved.
|
Work sessions2
Start |
2012-12-02T18:04:48
|
End |
2012-12-02T18:14:54
|
Participant |
Robert Cerny
|
Start |
2012-12-03T14:25:13
|
End |
2012-12-03T16:54:29
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.