method add documentation in bbn\Cron\Manager
function($cfg)
{
if ($this->check()
&& X::hasProps($cfg, ['file', 'priority', 'frequency', 'timeout'], true)
) {
$d = [
'file' => $cfg['file'],
'description' => $cfg['description'] ?? '',
'next' => $cfg['next'] ?? date('Y-m-d H:i:s'),
'priority' => $cfg['priority'],
'cfg' => json_encode(
[
'frequency' => $cfg['frequency'],
'timeout' => $cfg['timeout']
]
),
'active' => 1
];
if ($this->db->insert($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