Exemple #1
0
 /**
  * Add a delete entry to the audit log
  *
  * @param Events\TriggerEvent $event
  */
 public function onTriggerDelete(Events\TriggerEvent $event)
 {
     $trigger = $event->getTrigger();
     $log = array("bundle" => "point", "object" => "trigger", "objectId" => $trigger->deletedId, "action" => "delete", "details" => array('name' => $trigger->getName()), "ipAddress" => $this->factory->getIpAddressFromRequest());
     $this->factory->getModel('core.auditLog')->writeToLog($log);
 }
 /**
  * Add a delete entry to the audit log.
  *
  * @param Events\TriggerEvent $event
  */
 public function onTriggerDelete(Events\TriggerEvent $event)
 {
     $trigger = $event->getTrigger();
     $log = ['bundle' => 'point', 'object' => 'trigger', 'objectId' => $trigger->deletedId, 'action' => 'delete', 'details' => ['name' => $trigger->getName()], 'ipAddress' => $this->ipLookupHelper->getIpAddressFromRequest()];
     $this->auditLogModel->writeToLog($log);
 }