method getNextRows documentation in bbn\Cron\Manager

function(int $limit = 10, int $sec = 0) { if ($limit === 0) { $limit = 1000; } if ($this->check()) { return array_map( function ($a) { $cfg = $a['cfg'] ? json_decode($a['cfg'], true) : []; unset($a['cfg']); return X::mergeArrays($a, $cfg); }, $this->db->rselectAll( [ 'table' => $this->table, 'fields' => [], 'where' => [ 'conditions' => [[ 'field' => 'active', 'value' => 1 ], [ 'field' => 'pid', 'operator' => 'isnull' ], [ 'field' => 'next', 'operator' => 'isnotnull' ], [ 'field' => 'next', 'operator' => '<', 'exp' => $sec ? "DATE_ADD(NOW(), INTERVAL $sec SECOND)" : 'NOW()' ]] ], 'order' => [[ 'field' => 'priority', 'dir' => 'ASC' ], [ 'field' => 'next', 'dir' => 'ASC' ]], 'limit' => $limit ] ) ); } 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.