CRM_Case_Form_Activity_OpenCase
in package
This class generates form components for OpenCase Activity.
Table of Contents
Properties
- $_caseStatusId : int
- $_contactID : int
- The id of the client associated with this case.
Methods
- beginPostProcess() : mixed
- Process the form submission.
- buildQuickForm() : mixed
- endPostProcess() : void
- Process the form submission.
- formRule() : array<string|int, mixed>|bool
- Global validation rules for the form.
- preProcess() : void
- setDefaultValues() : array<string|int, mixed>
- Set default values for the form. For edit/view mode the default values are retrieved from the database
Properties
$_caseStatusId
public
int
$_caseStatusId
$_contactID
The id of the client associated with this case.
public
int
$_contactID
Methods
beginPostProcess()
Process the form submission.
public
static beginPostProcess(CRM_Case_Form_Case &$form, array<string|int, mixed> &$params) : mixed
Parameters
- $form : CRM_Case_Form_Case
- $params : array<string|int, mixed>
buildQuickForm()
public
static buildQuickForm(CRM_Case_Form_Case &$form) : mixed
Parameters
- $form : CRM_Case_Form_Case
Tags
endPostProcess()
Process the form submission.
public
static endPostProcess(CRM_Case_Form_Case $form, array<string|int, mixed> &$params) : void
Parameters
- $form : CRM_Case_Form_Case
- $params : array<string|int, mixed>
Tags
formRule()
Global validation rules for the form.
public
static formRule(array<string|int, mixed> $fields, array<string|int, mixed> $files, CRM_Case_Form_Case $form) : array<string|int, mixed>|bool
Parameters
- $fields : array<string|int, mixed>
-
The input form values.
- $files : array<string|int, mixed>
-
The uploaded files if any.
- $form : CRM_Case_Form_Case
Return values
array<string|int, mixed>|bool —list of errors to be posted back to the form
preProcess()
public
static preProcess(CRM_Case_Form_Case &$form) : void
Parameters
- $form : CRM_Case_Form_Case
Tags
setDefaultValues()
Set default values for the form. For edit/view mode the default values are retrieved from the database
public
static setDefaultValues(CRM_Case_Form_Case &$form) : array<string|int, mixed>
Parameters
- $form : CRM_Case_Form_Case
Tags
Return values
array<string|int, mixed> —$defaults