method edit documentation in bbn\Cron\Manager
function(string $id, array $cfg)
{
if ($this->check()
&& ($cron = $this->getCron($id))
) {
$d = [
'file' => $cfg['file'] ?? $cron['file'],
'description' => $cfg['description'] ?? $cron['description'],
'next' => $cfg['next'] ?? $cron['next'],
'priority' => $cfg['priority'] ?? $cron['priority'],
'cfg' => json_encode(
[
'frequency' => $cfg['frequency'] ?? $cron['frequency'],
'timeout' => $cfg['timeout'] ?? $cron['timeout']
]
),
'active' => 1
];
if ($this->db->update($this->table, $d, ['id' => $id])) {
$d['id'] = $id;
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