class CRM_Contribute_Form_SoftCredit

This class build form elements for select existing or create new soft block.

Methods

static 
preProcess(CRM_Core_Form $form)

Set variables up before form is built.

static CRM_Core_Form
buildQuickForm(CRM_Core_Form $form)

Function used to build form element for soft credit block.

static 
addPCPFields(CRM_Core_Form $form, string $suffix = '')

Add PCP fields for the new contribution form and others.

static 
setDefaultValues($defaults, $form)

Function used to set defaults for soft credit block.

static array
formRule(array $fields, $errors, $self)

Global form rule.

Details

at line 44
static preProcess(CRM_Core_Form $form)

Set variables up before form is built.

Parameters

CRM_Core_Form $form

at line 71
static CRM_Core_Form buildQuickForm(CRM_Core_Form $form)

Function used to build form element for soft credit block.

Parameters

CRM_Core_Form $form

Return Value

CRM_Core_Form

at line 157
static addPCPFields(CRM_Core_Form $form, string $suffix = '')

Add PCP fields for the new contribution form and others.

Parameters

CRM_Core_Form $form &$form The form being built.
string $suffix A suffix to add to field names.

at line 178
static setDefaultValues($defaults, $form)

Function used to set defaults for soft credit block.

Parameters

$defaults
$form

at line 218
static array formRule(array $fields, $errors, $self)

Global form rule.

Parameters

array $fields The input form values.
$errors
$self

Return Value

array Array of errors