diara / audit
此包已被放弃,不再维护。未建议替代包。
一个用于审计目的记录应用程序事件的 Kohana 模块。
2.1.1
2012-11-17 19:03 UTC
Requires
- php: >=5.4.0
- composer/installers: *
This package is not auto-updated.
Last update: 2022-02-01 12:22:19 UTC
README
- 开发者:A. Roots
- 创建时间:2012年5月
- 版权:Diara OÜ
Kohana Audit 是一个用于审计目的记录应用程序事件的 Kohana 3.2 模块。
安装
- 克隆仓库并在
application/bootstrap.php
中启用模块。 - 在您的数据库中执行
schema.sql
- User 类必须实现单例模式 - User::current() 必须返回 Auth::instance()->get_user()
使用示例
:::php
class Controller_Test extends Controller {
public function action_index() {
Audit::add(Audit::CREATE, 'Visited the test controller');
}
}
功能
- 不同活动的日志类型
- 日志消息的 I18n 支持
依赖项
- Kohana 3.2
- 数据库模块
- ORM 模块
- 认证模块
默认视图使用 Twitter Bootstrap v2 css 元素。