| = $this->getHtml('Action'); ?>
| old === null) : echo $this->getHtml('CREATE'); ?>
old !== null && $audit->new !== null) : echo $this->getHtml('UPDATE'); ?>
new === null) : echo $this->getHtml('DELETE'); ?>
getHtml('UNKNOWN'); ?>
|
| = $this->getHtml('Type'); ?>
| = $audit->type; ?>
|
| = $this->getHtml('Trigger'); ?>
| = $audit->trigger; ?>
|
| = $this->getHtml('By'); ?>
| = $audit->createdBy->name1; ?> = $audit->createdBy->name2; ?>
|
| = $this->getHtml('Ref'); ?>
| = $this->printHtml((string) $audit->ref); ?>
|
| = $this->getHtml('Date'); ?>
| = $this->getDateTime($audit->createdAt, 'very_long'); ?>
|
| = $this->getHtml('Module'); ?>
| = $audit->module; ?>
|
| = $this->getHtml('IP'); ?>
| = \long2ip($audit->ip); ?>
|
= \phpOMS\Utils\StringUtils::createDiffMarkup(
ViewAbstract::html(\stripos($audit->old ?? '', '{') === 0
? \json_encode(\json_decode($audit->old), \JSON_PRETTY_PRINT)
: $audit->old ?? ''
),
ViewAbstract::html(\stripos($audit->new ?? '', '{') === 0
? \json_encode(\json_decode($audit->new), \JSON_PRETTY_PRINT)
: $audit->new ?? ''
),
"\n"
); ?>