本文整理汇总了PHP中BaseActiveRecordVersioned::audit方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseActiveRecordVersioned::audit方法的具体用法?PHP BaseActiveRecordVersioned::audit怎么用?PHP BaseActiveRecordVersioned::audit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseActiveRecordVersioned
的用法示例。
在下文中一共展示了BaseActiveRecordVersioned::audit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: audit
/**
* Sets various default properties for audit calls on this event.
*
* @param $target
* @param $action
* @param null $data
* @param bool $log
* @param array $properties
*/
public function audit($target, $action, $data = null, $log = false, $properties = array())
{
$properties['event_id'] = $this->id;
$properties['episode_id'] = $this->episode_id;
$properties['patient_id'] = $this->episode->patient_id;
parent::audit($target, $action, $data, $log, $properties);
}
示例2: audit
/**
* Perform an audit log for the user
*
* @param $target
* @param $action
* @param null $data
* @param bool $log
* @param array $properties
*/
public function audit($target, $action, $data = null, $log = false, $properties = array())
{
$properties['user_id'] = $this->id;
parent::audit($target, $action, $data, $log, $properties);
}