Skip to content

Commit

Permalink
start to create setProperty and moveFestivity cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Mar 14, 2022
1 parent 6cf80da commit cdf8bdb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion includes/LitCalAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ private function createNewRegionalFestivity( object $row ) : void {
}

private function handleNationalCalendarRows( array $rows ) : void {
foreach( $this->WiderRegionData->LitCal as $row ) {
foreach( $rows as $row ) {
if( $this->LitSettings->Year >= $row->Metadata->sinceYear ) {
if( property_exists( $row->Metadata, "untilYear" ) && $this->LitSettings->Year >= $row->Metadata->untilYear ) {
continue;
Expand All @@ -1813,6 +1813,12 @@ private function handleNationalCalendarRows( array $rows ) : void {
case "createNew":
$this->createNewRegionalFestivity( $row );
break;
case "setProperty":
break;
case "moveFestivity":
$festivityNewDate = DateTime::createFromFormat( '!j-n-Y', $row->Festivity->day.'-'.$row->Festivity->month.'-' . $this->LitSettings->Year, new DateTimeZone( 'UTC' ) );
$this->moveFestivityDate( $row->Festivity->tag, $festivityNewDate, $row->Metadata->reason, $row->Metadata->missal );
break;
}
}
}
Expand Down

0 comments on commit cdf8bdb

Please sign in to comment.