$adapter
$adapter : \Pop\Audit\Adapter\AdapterInterface
Auditor adapter
Auditor class
$adapter : \Pop\Audit\Adapter\AdapterInterface
Auditor adapter
__construct(\Pop\Audit\Adapter\AdapterInterface $adapter)
Constructor
Instantiate the auditor object
\Pop\Audit\Adapter\AdapterInterface | $adapter |
setModel(string $model = null, integer $modelId = null) : \Pop\Audit\Auditor
Set user
string | $model | |
integer | $modelId |
setUser(string $username = null, integer $userId = null) : \Pop\Audit\Auditor
Set user
string | $username | |
integer | $userId |
setDomain(string $domain = null, string $route = null, string $method = null) : \Pop\Audit\Auditor
Set domain, route and method
string | $domain | |
string | $route | |
string | $method |
setMetadata(array $metadata) : \Pop\Audit\Auditor
Set the metadata
array | $metadata |
addMetadata(string $name, mixed $value) : \Pop\Audit\Auditor
Add to the metadata
string | $name | |
mixed | $value |