Documentation

pm_ActionLog
in package

Wrapper for ActionLog.

Tags
since
17.0

Table of Contents

NEW_VALUE  = 'new'
OLD_VALUE  = 'old'
submit()  : void

Constants

Methods

submit()

public static submit(string $actionId[, int|null $objectId = null ][, array<string|int, string> $oldValues = [] ][, array<string|int, string> $newValues = [] ]) : void
Parameters
$actionId : string
$objectId : int|null = null

ID of the object mentioned in the event. 0 if not applicable (singleton object like 'admin').

$oldValues : array<string|int, string> = []
$newValues : array<string|int, string> = []
Tags
example

array('contact_name' => 'John Smith', 'email' => 'user@new.example.com', 'login_name' => 'user1')

example

array('contact_name' => 'John Smith', 'email' => 'user@old.example.com', 'login_name' => 'user1')

throws
Exception
Return values
void

Search results