This pull request introduces a new feature that allows for multiple events of the same type to be added to an individual record in the Gedcom library. It also includes updates to the Writer class to properly handle and convert these multiple events when writing Gedcom files.
Summary
Added a new method addEven to the Indi class in the src/Gedcom/Record/Indi.php file. This method allows for adding multiple events of the same type to an individual record.
Updated the getEven method in the Indi class to return all events of a given type.
Modified the convert method in the Writer class in the src/Writer.php file to iterate over all events of an individual record and convert them to Gedcom format.
Updated the convert method in the Writer class to use the new convertEvent method in the Indi class to properly convert each event to Gedcom format.
Fixes #1.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces a new feature that allows for multiple events of the same type to be added to an individual record in the Gedcom library. It also includes updates to the Writer class to properly handle and convert these multiple events when writing Gedcom files.
Summary
addEven
to theIndi
class in thesrc/Gedcom/Record/Indi.php
file. This method allows for adding multiple events of the same type to an individual record.getEven
method in theIndi
class to return all events of a given type.convert
method in theWriter
class in thesrc/Writer.php
file to iterate over all events of an individual record and convert them to Gedcom format.convert
method in theWriter
class to use the newconvertEvent
method in theIndi
class to properly convert each event to Gedcom format.Fixes #1.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: