Documentation

CRM_Pledge_Form_PledgeFormTrait

Trait implements getContactValue + overridable getContactID functions.

These are commonly used on forms - although getContactID() would often be overridden. By using these functions it is not necessary to know if the Contact ID has already been defined as getContactID() will retrieve them form the values available (unless it is yet to be created).

Table of Contents

Methods

getPledgeID()  : int|null
Get id of Pledge being acted on.
getPledgeValue()  : mixed
Get a value from the Pledge being acted on.

Methods

getPledgeID()

Get id of Pledge being acted on.

public getPledgeID() : int|null
APIYes
Return values
int|null

getPledgeValue()

Get a value from the Pledge being acted on.

public getPledgeValue(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