CRM_Contact_Form_Edit_Lock
in package
Auxiliary class to provide support for locking (and ignoring locks on) contact records.
Table of Contents
Methods
- buildQuickForm() : mixed
- Build the form object.
- formRule() : bool|array<string|int, mixed>
- Ensure that modified_date has not changed in the underlying DB.
Methods
buildQuickForm()
Build the form object.
public
static buildQuickForm(CRM_Core_Form &$form) : mixed
Parameters
- $form : CRM_Core_Form
-
Form object.
formRule()
Ensure that modified_date has not changed in the underlying DB.
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