class CRM_Contact_Form_Inline_Lock

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

Methods

static 
buildQuickForm(CRM_Core_Form $form, int $contactID)

This function provides the HTML form elements.

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

Ensure that oplock_ts hasn't changed in the underlying DB.

static array
getResponse(int $contactID)

Return any post-save data.

Details

at line 46
static buildQuickForm(CRM_Core_Form $form, int $contactID)

This function provides the HTML form elements.

Parameters

CRM_Core_Form $form Form object.
int $contactID

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

Ensure that oplock_ts hasn't 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

at line 94
static array getResponse(int $contactID)

Return any post-save data.

Parameters

int $contactID

Return Value

array extra options to return in JSON