Skip to content

Commit

Permalink
add both english and localized variants of LitEvent properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jun 22, 2024
1 parent 3cb274f commit a3e8b29
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/AnniversaryCalculator/LitEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,22 @@ class LitEvent

public string $subject;
public string $anniversaryType;
public string $anniversaryTypeLcl;
public ?string $anniversaryName;
public ?int $year;
public ?int $eventMonth;
public ?int $eventDay;
public ?int $memorialMonth;
public ?int $memorialDay;
public string $calendar;
public string $calendarLcl;
public ?string $placeOfBirth;
public ?string $placeOfDeath;
public ?string $placeOfBurial;
public ?string $mainShrine;
public ?string $places;
public array $areaOfInterest;
public array $areaOfInterestLcl;
public ?string $notes;
public ?string $anniversary;
public ?string $anniversaryLcl;
Expand Down Expand Up @@ -89,18 +92,21 @@ public function __construct(array $rowData)
$this->tag = $rowData["TAG"];

$this->subject = $rowData["SUBJECT"];
$this->anniversaryType = $AnnivType->i18n($rowData["ANNIVERSARY"]);
$this->anniversaryType = $rowData["ANNIVERSARY"];
$this->anniversaryTypeLcl = $AnnivType->i18n($rowData["ANNIVERSARY"]);
$this->year = $rowData["YEAR"];
$this->eventMonth = $rowData["EVENT_MONTH"];
$this->eventDay = $rowData["EVENT_DAY"];
$this->memorialMonth = $rowData["MEMORIAL_MONTH"];
$this->memorialDay = $rowData["MEMORIAL_DAY"];
$this->calendar = $LitCalendar->i18n($rowData["CALENDAR"]);
$this->calendar = $rowData["CALENDAR"];
$this->calendarLcl = $LitCalendar->i18n($rowData["CALENDAR"]);
$this->placeOfBirth = $rowData["PLACE_OF_BIRTH"];
$this->placeOfDeath = $rowData["PLACE_OF_DEATH"];
$this->placeOfBurial = $rowData["PLACE_OF_BURIAL"];
$this->mainShrine = $rowData["MAIN_SHRINE"];
$this->places = $rowData["PLACES"];
$this->areaOfInterest = $rowData["AREA"] ? explode(",", $rowData["AREA"]) : [];
$this->areaOfInterest = $rowData["AREA"] ? $AreaInterest->i18n(explode(",", $rowData["AREA"])) : [];
$this->notes = $rowData["NOTES"];
$this->patronage = $rowData["PATRONAGE"];
Expand Down

0 comments on commit a3e8b29

Please sign in to comment.