EventFormOnline
extends FormWrapper
in package
Table of Contents
Constants
- BUILT = 3
- CONSTRUCTED = 0
- PREPROCESSED = 1
- SUBMITTED = 5
- VALIDATED = 4
Properties
- $form : CRM_Core_Form
- $subsequentForms : array<string|int, CRM_Core_Form>
Methods
- __call() : mixed
- Call a function declared as externally accessible on the form.
- __construct() : mixed
- addSubsequentForm() : $this
- Add another form to process.
- checkTemplateVariable() : void
- getDeprecatedProperty() : mixed
- Retrieve a deprecated property, ensuring a deprecation notice is thrown.
- getException() : Exception
- getFirstMail() : array<string|int, mixed>
- getFirstMailBody() : string
- getMail() : null|array<string|int, mixed>
- getMailCount() : int
- Get the number of emails sent.
- getTemplateVariable() : mixed
- Get a variable assigned to the template.
- getTemplateVariables() : array<string|int, mixed>
- getValidationOutput() : array<string|int, mixed>|bool
- postProcess() : $this
- Call form post process function.
- processForm() : FormWrapper
- Process a CiviCRM form.
Constants
BUILT
public
mixed
BUILT
= 3
CONSTRUCTED
public
mixed
CONSTRUCTED
= 0
PREPROCESSED
public
mixed
PREPROCESSED
= 1
SUBMITTED
public
mixed
SUBMITTED
= 5
VALIDATED
public
mixed
VALIDATED
= 4
Properties
$form
protected
CRM_Core_Form
$form
$subsequentForms
protected
array<string|int, CRM_Core_Form>
$subsequentForms
= []
Methods
__call()
Call a function declared as externally accessible on the form.
public
__call(string $name, array<string|int, mixed> $arguments) : mixed
This will only call a limited number of form functions that are either a) supported from use from outside of core or b) direct form flow functions
As this class is expected to be used in extension tests we don't want to perpetuate the current issue with internal / unsupported properties being accessed willy nilly - so this provides testing support using supported or intrinsic functions only.
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Tags
__construct()
public
__construct(string $formName[, array<string|int, mixed> $formValues = [] ][, array<string|int, mixed> $urlParameters = [] ]) : mixed
Parameters
- $formName : string
- $formValues : array<string|int, mixed> = []
- $urlParameters : array<string|int, mixed> = []
addSubsequentForm()
Add another form to process.
public
addSubsequentForm(string $formName[, array<string|int, mixed> $formValues = [] ]) : $this
Parameters
- $formName : string
- $formValues : array<string|int, mixed> = []
Return values
$thischeckTemplateVariable()
public
checkTemplateVariable(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Tags
getDeprecatedProperty()
Retrieve a deprecated property, ensuring a deprecation notice is thrown.
public
getDeprecatedProperty(string $property) : mixed
Parameters
- $property : string
Tags
getException()
public
getException() : Exception
Return values
ExceptiongetFirstMail()
public
getFirstMail() : array<string|int, mixed>
Return values
array<string|int, mixed>getFirstMailBody()
public
getFirstMailBody() : string
Return values
stringgetMail()
public
getMail() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed>getMailCount()
Get the number of emails sent.
public
getMailCount() : int
Return values
intgetTemplateVariable()
Get a variable assigned to the template.
public
getTemplateVariable(mixed $string) : mixed
Parameters
- $string : mixed
getTemplateVariables()
public
getTemplateVariables() : array<string|int, mixed>
Return values
array<string|int, mixed>getValidationOutput()
public
getValidationOutput() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|boolpostProcess()
Call form post process function.
public
postProcess() : $this
Return values
$thisprocessForm()
Process a CiviCRM form.
public
processForm([int $state = self::SUBMITTED ]) : FormWrapper
Parameters
- $state : int = self::SUBMITTED