Documentation

CRM_Contact_Form_Edit_Individual
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()  : void
This function provides the HTML form elements that are specific to the Individual Contact Type.
formRule()  : bool|array<string|int, mixed>
Global form rule.

Methods

buildQuickForm()

This function provides the HTML form elements that are specific to the Individual Contact Type.

public static buildQuickForm(CRM_Core_Form $form[, int $inlineEditMode = NULL ]) : void
Parameters
$form : CRM_Core_Form

Form object.

$inlineEditMode : int = NULL

( 1 for contact summary. top bar form and 2 for display name edit )

formRule()

Global form rule.

public static formRule(array<string|int, mixed> $fields, array<string|int, mixed> $files[, int $contactID = NULL ]) : bool|array<string|int, mixed>
Parameters
$fields : array<string|int, mixed>

The input form values.

$files : array<string|int, mixed>

The uploaded files if any.

$contactID : int = NULL
Return values
bool|array<string|int, mixed>

TRUE if no errors, else array of errors.


        
On this page

Search results