Source API for the «PortePlugins_Temporal» class
Plugin to automatically add 2 new properties "creation_date" and "modification_date".
All models tagged as "temporal" will be enriched with two new properties:
- creation_date
The date of creation is set only once when a record is first created. - modification_date
The date of modification is updated each time a record is updated.
To marked a model as being "temporal", simply add a value "temporal" at the root of the targeted model definition.
However, if you wish more flexibility (like controlling the name of the creation and modification properties), you may define a temporal key with an configuration array as a its associated value.
Public static methods
- register
-
Register the plugin with a Porte instance.
- _modelTableAfter
-
This method is not yet documented.
- _recordModelBefore
-
This method is not yet documented.
- _recordCreateBefore
-
This method is not yet documented.
- _recordUpdateBefore
-
This method is not yet documented.