本文整理匯總了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);
}