method start documentation in bbn\Cron\Manager

Writes in the given CRON row the next start time, the current as previous, and the new running status.

function(string $id_cron) { $res = false; if ($this->check() && ($cron = $this->getCron($id_cron)) ) { $enable = false; if ($this->db->isTriggerEnabled()) { $this->db->disableTrigger(); $enable = true; } if ($this->db->update( $this->table, [ 'prev' => date('Y-m-d H:i:s'), 'pid' => getmypid() ], [ 'id' => $id_cron, 'pid' => null, 'active' => 1 ] ) ) { $res = true; } if ($enable) { $this->db->enableTrigger(); } } return $res; }

Writes in the given CRON row the next start time, the current as previous, and the new running status. 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.