CRM_Event_Form_EventFees
in package
This class generates form components for processing a participation fee block
Table of Contents
Methods
- preProcess() : mixed
- Set variables up before form is built.
- setDefaultPriceSet() : array<string|int, mixed>
- This function sets the default values for price set.
- setDefaultValues() : array<string|int, mixed>
- This function sets the default values for the form in edit/view mode.
- getDefaultPaymentInstrumentId() : int
- Get the default payment instrument id.
Methods
preProcess()
Set variables up before form is built.
public
static preProcess(CRM_Core_Form &$form) : mixed
since 5.69 will be removed around 5.74
Parameters
- $form : CRM_Core_Form
Tags
setDefaultPriceSet()
This function sets the default values for price set.
public
static setDefaultPriceSet(int $participantID[, int $eventID = null ][, bool $includeQtyZero = true ]) : array<string|int, mixed>
Parameters
- $participantID : int
- $eventID : int = null
- $includeQtyZero : bool = true
Return values
array<string|int, mixed>setDefaultValues()
This function sets the default values for the form in edit/view mode.
public
static setDefaultValues(CRM_Event_Form_Participant|CRM_Event_Form_Registration_AdditionalParticipant|CRM_Event_Form_Registration_Register $form) : array<string|int, mixed>
Parameters
- $form : CRM_Event_Form_Participant|CRM_Event_Form_Registration_AdditionalParticipant|CRM_Event_Form_Registration_Register
Return values
array<string|int, mixed>getDefaultPaymentInstrumentId()
Get the default payment instrument id.
protected
static getDefaultPaymentInstrumentId() : int