method getDayLogs documentation in bbn\Cron\Common
function(array $cfg)
{
if ( bbn\Str::isUid($cfg['id']) && bbn\Str::isDateSql($cfg['day']) ){
$p = \explode('-', $cfg['day']);
\array_pop($p);
$p = \implode('/', $p).'/';
if (
($task = $this->getManager()->getCron($cfg['id'])) &&
!empty($task['file']) &&
($path = $this->getLogPath($cfg, false, true)) &&
($file = $path.$p.$cfg['day'].'.json') &&
\is_file($file) &&
($file = \json_decode(\file_get_contents($file), true))
){
return array_reverse(array_filter($file, function($f) use($task){
return isset($f['file']) && ($f['file'] === $task['file']);
}));
}
return [];
}
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.
© 2011-2023
BBN Solutions