Documentation

CRM_Case_Form_Activity_ChangeCaseType
in package

This class generates form components for OpenCase Activity.

Table of Contents

Methods

beginPostProcess()  : mixed
Process the form submission.
buildQuickForm()  : mixed
endPostProcess()  : mixed
Process the form submission.
formRule()  : array<string|int, mixed>
Global validation rules for the form.
preProcess()  : mixed
setDefaultValues()  : array<string|int, mixed>
Set default values for the form.

Methods

beginPostProcess()

Process the form submission.

public static beginPostProcess(CRM_Core_Form &$form, array<string|int, mixed> &$params) : mixed
Parameters
$form : CRM_Core_Form
$params : array<string|int, mixed>

endPostProcess()

Process the form submission.

public static endPostProcess(CRM_Core_Form &$form, array<string|int, mixed> &$params, mixed $activity) : mixed
Parameters
$form : CRM_Core_Form
$params : array<string|int, mixed>
$activity : mixed

formRule()

Global validation rules for the form.

public static formRule(array<string|int, mixed> $values, mixed $files, CRM_Core_Form $form) : array<string|int, mixed>
Parameters
$values : array<string|int, mixed>

Posted values of the form.

$files : mixed
$form : CRM_Core_Form
Return values
array<string|int, mixed>

list of errors to be posted back to the form

setDefaultValues()

Set default values for the form.

public static setDefaultValues(CRM_Core_Form &$form) : array<string|int, mixed>

For edit/view mode the default values are retrieved from the database.

Parameters
$form : CRM_Core_Form
Return values
array<string|int, mixed>

        
On this page

Search results