Register new task for plugin (called by plugin during install)
public static Register ( $itemtype, $name, $frequency, $options = [] ) : boolean | ||
$itemtype | itemtype of the plugin object | |
$name | of the task | |
$frequency | of execution | |
$options | array of optional options (state, mode, allowmode, hourmin, hourmax, logs_lifetime, param, comment) | |
Résultat | boolean | for success |