method addSingle documentation in bbn\Cron\Manager
function(string $file, string $variant, int $priority = 5, int $timeout = 360)
{
if ($this->check()) {
$d = [
'file' => $file,
'description' => X::_('One shot action'),
'next' => date('Y-m-d H:i:s'),
'priority' => $priority,
'cfg' => json_encode(
[
'frequency' => null,
'timeout' => $timeout
]
),
'project' => BBN_PROJECT,
'active' => 1
];
if ($this->db->insertUpdate($this->table, $d)) {
$d['id'] = $this->db->lastId();
return $d;
}
}
return null;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions