jmillerdesign/log_action
Composer 安装命令:
composer require jmillerdesign/log_action
包简介
CakePHP plugin to monitor changes to the database made by a user.
关键字:
README 文档
README
Version 8, by J. Miller
This will monitor specified fields in your database for changes. It will log the before and after values of changes, as well as the user_id that made the change.
Installation
-
Run the following command to create the database table log_actions.
cake schema create --plugin LogAction
-
Load the plugin in Config/bootstrap.php
CakePlugin::load('LogAction');
-
Add the behavior to the model(s) you want to monitor, and specify the fields to monitor. If you don't specify fields, then it will monitor all fields.
public $actsAs = array( 'LogAction.LogAction' => array( 'fields' => array('title', 'body'), 'trackDelete' => false ) );
TODO
- Add support for AppModel, to monitor all fields in all tables, or specified fields on all tables
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-05-17