Source API for the «PortePluginsTemporal» 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:

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.