Share event lookup functions in a trait
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 23 Sep 2023 23:30:26 +0000 (12:30 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 24 Sep 2023 00:24:24 +0000 (13:24 +1300)
commit93914e4bd190330a3f407813326d45ab78a75b56
tree3a985fd0023bc6628c3d48fd14c90163994e428d
parentb08fec396f62f250b583aa8c8f5681d6fefbc6c3
Share event lookup functions in a trait

This is a step to standardising our event-related forms to all supporting the same consistent
public functions
- getEventID()
- getParticipantID()
- getEventValue()
- getPartcipantValue()

& ouside this PR
- getContactID
- getContactValue()
- getPriceSetID()
- getDiscountID()

Note I didn't implement the participant stuff for the online registration form
at this point because it needs a bit more though
CRM/Event/Form/EventFormTrait.php [new file with mode: 0644]
CRM/Event/Form/Participant.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Form/Registration.php