Extract getDiscountID()
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 11 Aug 2023 04:29:08 +0000 (16:29 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 11 Aug 2023 05:21:17 +0000 (17:21 +1200)
commitcd6e40b4364f5453dd7921e0c593cdcac7fe08ba
tree5b217b4e958311583acfc7c45edee3681f987666
parentbd65d4e413940ffeed948149988a805abd0d419b
Extract getDiscountID()

This is part of a general cleanup to stop passing the form into functions & then checking the form
for a possible property. Instead each form that calls the function has a consistent
(publicly supported) getDiscountID() function that it calls & discountID is passed in.

Note I was actually trying to give getPriceSetID this treatment but discountID was in the
way. In general I'm trying to make some consisent public functions available on forms
for retrieving relevant entity IDs rather than the current property / form
variable patchwork
CRM/Event/Form/Participant.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Form/Registration.php