method getNext documentation in bbn\Cron\Manager

Returns the whole row for the next CRON to be executed from now if there is any.

function($id_cron = NULL) { $conditions = [[ 'field' => 'next', 'operator' => '<', 'exp' => 'NOW()' ], [ 'field' => 'next', 'operator' => 'isnotnull' ], [ 'field' => 'active', 'value' => 1 ]]; if (bbn\Str::isUid($id_cron)) { $conditions[] = [ 'field' => 'id', 'value' => $id_cron ]; } if ($this->check() && ($data = $this->db->rselect( [ 'table' => $this->table, 'fields' => [], 'where' => [ 'conditions' => $conditions ], 'order' => [[ 'field' => 'priority', 'dir' => 'ASC' ], [ 'field' => 'next', 'dir' => 'ASC' ]] ] )) ) { // Dans cfg: timeout, et soit: latency, minute, hour, day of month, day of week, Date $data['cfg'] = json_decode($data['cfg'], 1); return $data; } return null; }

Returns the whole row for the next CRON to be executed from now if there is any. 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.