method __construct documentation in bbn\Cron

function(bbn\Db $db, bbn\Mvc\Controller $ctrl = NULL, array $cfg = []) { if ($db->check()) { $this->path = $cfg['data_path'] ?? Mvc::getDataPath('appui-cron'); $this->db = $db; $this->timer = new Util\Timer(); $this->table = ($cfg['prefix'] ?? $this->prefix).'cron'; if (!empty($cfg['exe_path'])) { $this->exe_path = $cfg['exe_path']; } if (!empty($cfg['log_file'])) { $this->log_file = $cfg['log_file']; } if ($ctrl) { if (empty($this->exe_path)) { $this->exe_path = $ctrl->pluginUrl('appui-cron'); if ($this->exe_path) { $this->exe_path .= '/run'; } } $this->controller = $ctrl; } } }

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.