pragma-framework/historic
最新稳定版本:1.12.0
Composer 安装命令:
composer require pragma-framework/historic
包简介
The Pragma Module for handling models changelogs in Pragma Framework
README 文档
README
The Pragma Module for handling models changelogs in Pragma Framework.
Installation
In composer.json add:
require {"pragma-framework/historic": "dev-master"}
Howto use with Pragma/Model classes
In Model, add use Historisable; and in Model::___construct $this->set_historised(true);
In Model::delete() add this->set_global_name($this->field) (DEPRECATED)
In Model::__construct add $this->set_global_name_fields(['field']);
What about created_at and created_by
These columns should be handled by within the PRAGMA_HISTORIC_CREATION_HOOK constant (in the config.php)
CLI Route
Route used to empty all or part of the history
php public/index.php historic:clean [-d|--days=] [-s|--skip-confirm]
Options
-d --days
Number of days of history to keep
-s --skip-confirm
Skip confirmation (useful with crons)
统计信息
- 总下载量: 5.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-05