CRM_Contact_Form_Edit_Household
in package
Auxiliary class to provide support to the Contact Form class.
Does this by implementing a small set of static methods.
Table of Contents
Methods
- buildQuickForm() : mixed
- This function provides the HTML form elements that are specific to the Household Contact Type.
- formRule() : array<string|int, mixed>|bool
- Add rule for household.
Methods
buildQuickForm()
This function provides the HTML form elements that are specific to the Household Contact Type.
public
static buildQuickForm(CRM_Core_Form &$form[, int $inlineEditMode = NULL ]) : mixed
Parameters
- $form : CRM_Core_Form
-
Form object.
- $inlineEditMode : int = NULL
-
( 1 for contact summary. top bar form and 2 for display name edit )
formRule()
Add rule for household.
public
static formRule(array<string|int, mixed> $fields, array<string|int, mixed> $files[, int $contactID = NULL ]) : array<string|int, mixed>|bool
Parameters
- $fields : array<string|int, mixed>
-
Array of form values.
- $files : array<string|int, mixed>
-
Unused.
- $contactID : int = NULL
Return values
array<string|int, mixed>|bool —$error