Stats
Version
1.1
Wheels Compatibility
1.1, 1.0
Downloads
274
Last Updated
November 7, 2010
About Plugins
Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.
Read Using and Creating Plugins for more information.
Log User Actions
Allows the automatic completion of user logging fields during create, update and delete actions.
Author
Project Home
https://github.com/andybellenie/cfwheels-log-user-actions
Description
This plugin allows the automatic completion of user logging fields during insertions, updates and deletes.
Usage/Examples
Add logUserActions(userIdLocation[, createProperty, updateProperty, deleteProperty]) to the init of your model to enable the plugin.
- userIdLocation (string, required) - the literal name of a variable containing the value you want to store as a user Id, e.g. "session.userId" (not the value itself!)
- createProperty (string, default 'createdBy') - the name of the column you would like to use for logging creates
- updateProperty (string, default 'updatedBy') - the name of the column you would like to use for logging updates
- deleteProperty (string, default 'deletedBy') - the name of the column you would like to use for logging deletes
<cffunction name="init">
<cfset logUserActions(userIdLocation="session.userId")>
</cffunction>
Change Log
Version 1.1—November 7, 2010 Download
Updated for Wheels 1.1Wheels compatibility: 1.0, 1.1.
Version 1.0—October 25, 2010 Download
- None recorded.
- Wheels compatibility: 0.9.4, 1.0 RC1, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1 Beta 1, 1.1.
Version 0.3—October 30, 2009 Download
- Initial public release.
- Wheels compatibility: 0.9, 1.0.
