method serie documentation in bbn\Appui\Statistic

function(int $values = 30, string $unit = 'd', string $end = NULL) { if ($this->check()) { if (!Str::isDateSql($end)) { $end = date('Y-m-d'); } $tst = mktime(12, 0, 0, substr($end, 5, 2), substr($end, 8, 2), substr($end, 0, 4)); switch ($unit) { case 'd': $exp = 'days'; break; case 'w': $exp = 'weeks'; break; case 'm': $exp = 'month'; break; case 'y': $exp = 'years'; break; } $start = date('Y-m-d', strtotime("$values $exp ago", $tst)); return $this->serieByDate($unit, $end, $start); } 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.