method get_log_prev_next documentation in bbn\Cron\Common

function(array $cfg) { $fs = new bbn\File\System(); $fpath = $cfg['fpath'] ?: ''; if ( ($path = $this->getLogPath($cfg, false, true)) && $fs->isDir($path.$fpath) ){ $fs->cd($path.$fpath); $files = array_reverse($fs->getFiles('./', true, true, null, 'cts')); foreach ( $files as $i => $f ){ if ( $f['name'] === $cfg['filename'] ){ $tf = $files[$i + ($cfg['action'] === 'prev' ? 1 : -1)]; return $path . $fpath . (!empty($tf) ? $tf['name'] : $f['name']); } } } 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.