yii: created and updated, who and when

by prettyscripts on 2010-09-02 15:31:02 • 5 comments »

phpyii

most data have created_date, created_by, updated_date and updated_by columns to audit records. in yii, these columns can be automatically updated via these 2 behaviors:CTimestampBehavior - a standard zii behavior that is distributed with yiiBlameab… more »

Tags: behavior, created, extension, modified, timestamp, updated, yii

symfony: hacking sfDoctrineActAsSignablePlugin to allow updated and created by specific user

by prettyscripts on 2010-05-25 14:36:07 • Leave a comment »

symfony

i'm using sfDoctrineActAsSignablePlugin to audit record creation and updates. ie fields created_by and updated_by are automatically created and updated. this is perfect when running from browsers. but when running as command line such as loading initia… more »

Tags: created, hack, plugin, symfony, updated, user

symfony: created_by and updated_by columns

by prettyscripts on 2009-08-07 10:50:10 • Leave a comment »

symfony

these columns are required for most tables to sign the data. however the save codes are repeated through out the model classes. code repetition is bad programming practice. this is where sfDoctrineActAsSignablePlugin comes to rescue! once plugin is ins… more »

Tags: created, signable, symfony, updated, user