mirror of https://github.com/MISP/MISP
23 lines
901 B
PHP
23 lines
901 B
PHP
<?php
|
|
include_once APP . 'Model/WorkflowModules/WorkflowBaseModule.php';
|
|
|
|
class Module_object_after_save extends WorkflowBaseTriggerModule
|
|
{
|
|
public $id = 'object-after-save';
|
|
public $scope = 'object';
|
|
public $name = 'Object After Save';
|
|
public $description = 'This trigger is called after an Object has been saved in the database';
|
|
public $icon = 'cubes';
|
|
public $inputs = 0;
|
|
public $outputs = 1;
|
|
public $blocking = false;
|
|
public $misp_core_format = true;
|
|
public $trigger_overhead = self::OVERHEAD_HIGH;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->trigger_overhead_message = __('This trigger is called each time an Object has been saved. This means that when a large quantity of Objects are being saved (e.g. Feed pulling or synchronisation), the workflow will be run for as many time as there are Objects.');
|
|
}
|
|
}
|