PHP Interface OwenIt\Auditing\Contracts\Auditable

Show file Open project: owen-it/laravel-auditing Interface Usage Examples

Public Methods

Method Description
auditCreation ( ) : void Audit creation.
auditDeletion ( ) : void Audit deletion.
auditUpdate ( ) : void Audit updated.
clearOlderAudits ( ) : void Clear the oldest audit's if given a limit.
getAuditors ( ) : array Get the Auditors.
prepareAudit ( ) : void Prepare audit model.
toAudit ( ) : array Return data for Audit.
transformAudit ( array $data ) : array Allows transforming the audit data before it's passed to the database.

Method Details

auditCreation() public method

Audit creation.
public auditCreation ( ) : void
return void

auditDeletion() public method

Audit deletion.
public auditDeletion ( ) : void
return void

auditUpdate() public method

Audit updated.
public auditUpdate ( ) : void
return void

clearOlderAudits() public method

Clear the oldest audit's if given a limit.
public clearOlderAudits ( ) : void
return void

getAuditors() public method

Get the Auditors.
public getAuditors ( ) : array
return array

prepareAudit() public method

Prepare audit model.
public prepareAudit ( ) : void
return void

toAudit() public method

Return data for Audit.
public toAudit ( ) : array
return array

transformAudit() public method

Allows transforming the audit data before it's passed to the database.
public transformAudit ( array $data ) : array
$data array
return array