CRM_Campaign_Form_CampaignFormTrait
Trait implements functions to retrieve activity related values.
Table of Contents
Methods
- getCampaignID() : int|null
- Get the selected Campaign ID.
- getCampaignValue() : mixed
- Get the value for a field relating to the Campaign.
Methods
getCampaignID()
Get the selected Campaign ID.
public
getCampaignID() : int|null
APIYes
Tags
Return values
int|nullgetCampaignValue()
Get the value for a field relating to the Campaign.
public
getCampaignValue(string $fieldName) : mixed
APIYes
All values returned in apiv4 format. Escaping may be required.
Parameters
- $fieldName : string