Documentation

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
noinspection

PhpUnhandledExceptionInspection

Return values
int|null

getMembershipValue()

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
Tags
throws
CRM_Core_Exception

        
On this page

Search results