简体   繁体   English

需要帮助以使用ATK Framework进行审核跟踪

[英]Need help to make audit trail using ATK Framework

I don't have any experience using ATK, If some one could help to giving me the tutorial page to make the Audit trail using ATK framework. 我没有使用ATK的经验,如果有人可以帮助给我教程页面,以便使用ATK框架进行审核跟踪。 Thank you. 谢谢。

check out the atkEventLog class. 查看atkEventLog类。 you would use it like this : 你会这样使用它:

$this->addListener(atknew("atk.utils.atkeventlog"));

where $this is your node that you want an audit log for. $ this是您要为其审核日志的节点。 it requires a table called atkeventlog , but i can't remember if that is created by default or not... anyway, check atk/utils/class.atkeventlog.inc for structure if needed. 它需要一个名为atkeventlog的表,但是我不记得是否默认创建了该表...无论如何,如果需要,请检查atk / utils / class.atkeventlog.inc的结构。 i doubt this will do all of your revision history. 我怀疑这会影响您的所有修订历史。 i seem to remember it being more of an access history. 我似乎还记得它更多的是访问历史。 you might see user1 changed record 2 in SuperSecureArea or something like that, but i don't think it will record field level changes. 您可能会user1 changed record 2 in SuperSecureArea看到user1 changed record 2 in SuperSecureArea或类似的内容,但是我认为它不会记录字段级别的更改。

for that you need to implement some of your own stuff, probably center around the NF_TRACK_CHANGES node flag. 为此,您需要实现一些自己的东西,可能围绕NF_TRACK_CHANGES节点标志。 this will pass the old values to postUpdate as $rec[atkorgrec] . 这会将旧值作为$rec[atkorgrec]传递给postUpdate if i think about it i might post an implementation of this that i did a while back. 如果我考虑过这一点,我可能会发布我之前做过的一个实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM