NZTA\SDLT\Service\AuditService::commit
Commit a single audit event.
Signature
public function commit(string
$event,
string
$extra,
DataObject
$model,
[string
$userData = '',
[string
$historyLink = '']] )
Parameters
$event
—
string
- An a single event, declared as a service constant.
$extra
—
string
- Additional data to save alongside the event-name itself.
$model
—
SilverStripe\ORM\DataObject
- The model that invoked this commit.
$userData
—
string
- Arbitrary data about the user that fired the event.
$historyLink
—
string
Returns
- void