method getLastLogs documentation in bbn\Cron\Common

function(array $cfg, bool $error = false, $start = 0, $num = 10) { $fs = new \bbn\File\System(); if (($path = $this->getLogPath($cfg, $error, true)) && $fs->isDir($path)) { $res = []; $fs->cd($path); $years = array_reverse($fs->getDirs($path)); foreach ($years as $y) { $months = array_reverse($fs->getDirs($y)); foreach ($months as $m) { $days = array_reverse($fs->getDirs($m)); foreach ($days as $d) { $nums = array_reverse($fs->getDirs($d)); foreach ($nums as $num) { foreach (array_reverse($fs->getFiles($num)) as $f) { if ($start) { $start--; } if (!$start) { $res[] = $f; if (count($res) >= $num) { return $res; } } } } } } } return $res; } 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.