class CRM_Contact_Form_Edit_Lock

Auxiliary class to provide support for locking (and ignoring locks on) contact records.

Methods

static 
buildQuickForm(CRM_Core_Form $form)

Build the form object.

static bool|array
formRule(array $fields, array $files, int $contactID = NULL)

Ensure that modified_date has not changed in the underlying DB.

Details

at line 45
static buildQuickForm(CRM_Core_Form $form)

Build the form object.

Parameters

CRM_Core_Form $form Form object.

at line 61
static bool|array formRule(array $fields, array $files, int $contactID = NULL)

Ensure that modified_date has not changed in the underlying DB.

Parameters

array $fields The input form values.
array $files The uploaded files if any.
int $contactID

Return Value

bool|array true if no errors, else array of errors