CRM_Member_Form_MembershipFormTrait
Trait implements functions to retrieve membership related values.
Table of Contents
Methods
- getMembershipID() : int|null
- Get the selected Membership ID.
- getMembershipValue() : mixed
- Get the value for a field relating to the Membership.
Methods
getMembershipID()
Get the selected Membership ID.
public
getMembershipID() : int|null
APIYes
Tags
Return values
int|nullgetMembershipValue()
Get the value for a field relating to the Membership.
public
getMembershipValue(string $fieldName) : mixed
APIYes
All values returned in apiv4 format. Escaping may be required.
Parameters
- $fieldName : string