Documentation

CRM_Contact_Form_Inline_Lock
in package

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

Table of Contents

Methods

buildQuickForm()  : mixed
This function provides the HTML form elements.
formRule()  : bool|array<string|int, mixed>
Ensure that oplock_ts hasn't changed in the underlying DB.
getResponse()  : array<string|int, mixed>
Return any post-save data.

Methods

buildQuickForm()

This function provides the HTML form elements.

public static buildQuickForm(CRM_Core_Form &$form, int $contactID) : mixed
Parameters
$form : CRM_Core_Form

Form object.

$contactID : int

formRule()

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

getResponse()

Return any post-save data.

public static getResponse(int $contactID) : array<string|int, mixed>
Parameters
$contactID : int
Return values
array<string|int, mixed>

extra options to return in JSON


        
On this page

Search results