/** * 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); }
/** * 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); }