X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/4014f59b4760882881cc2c077360337120c8a171..9cbd1317f0f0ea0477126bfbfbd8e7168edf93d6:/src/bdrem/Source/Bdf.php diff --git a/src/bdrem/Source/Bdf.php b/src/bdrem/Source/Bdf.php index e8208eb..f38e30f 100644 --- a/src/bdrem/Source/Bdf.php +++ b/src/bdrem/Source/Bdf.php @@ -21,7 +21,7 @@ class Source_Bdf /** * @param string $strDate Date the events shall be found for, YYYY-MM-DD */ - public function getEvents($strDate, $nDaysBefore, $nDaysAfter) + public function getEvents($strDate, $nDaysPrev, $nDaysNext) { $x = simplexml_load_file($this->filename); @@ -38,7 +38,7 @@ class Source_Bdf (string) $xPerson->event, $date ); - if ($event->isWithin($strDate, $nDaysBefore, $nDaysAfter)) { + if ($event->isWithin($strDate, $nDaysPrev, $nDaysNext)) { $arEvents[] = $event; } }