onOffice WP Plugin

FormPostContact extends FormPost
in package

Interest/Contact form

  • send "Id" value if in estate-context

Table of Contents

MESSAGE_ERROR  = 'error'
MESSAGE_RECAPTCHA_SPAM  = 'recaptchaSpam'
MESSAGE_REQUIRED_FIELDS_MISSING  = 'fieldmissing'
MESSAGE_SUCCESS  = 'success'
PORTALFILTER_IDENTIFIER  = '[onOffice-WP]'
$_absolutCountResults  : int
$_formDataInstances  : array<string|int, mixed>
$_formNo  : int
$_pCompoundFields  : CompoundFieldsFilter
$_pFieldsCollection  : FieldsCollection
$_pFieldsCollectionConfiguratorForm  : FieldsCollectionConfiguratorForm
$_pFormPostConfiguration  : FormPostConfiguration
$_pFormPostContactConfiguration  : FormPostContactConfiguration
$_pSearchcriteriaFields  : SearchcriteriaFields
__construct()  : mixed
getAbsolutCountResults()  : int
getFormDataInstance()  : FormData
getFormNo()  : int
incrementFormNo()  : mixed
initialCheck()  : void
setFormDataInstances()  : mixed
analyseFormContentByPrefix()  : mixed
expandFieldsCollection()  : array<string|int, mixed>
getAllowedPostVars()  : array<string|int, mixed>
getFieldsCollection()  : FieldsCollection
setAbsolutCountResults()  : mixed
setFieldsCollection()  : mixed
buildFormData()  : FormData
checkCaptcha()  : bool
createAddress()  : void
sendContactRequest()  : mixed

Constants

MESSAGE_ERROR

public mixed MESSAGE_ERROR = 'error'

MESSAGE_RECAPTCHA_SPAM

public mixed MESSAGE_RECAPTCHA_SPAM = 'recaptchaSpam'

MESSAGE_REQUIRED_FIELDS_MISSING

public mixed MESSAGE_REQUIRED_FIELDS_MISSING = 'fieldmissing'

MESSAGE_SUCCESS

public mixed MESSAGE_SUCCESS = 'success'

PORTALFILTER_IDENTIFIER

public mixed PORTALFILTER_IDENTIFIER = '[onOffice-WP]'

Properties

$_absolutCountResults

private int $_absolutCountResults = 0

$_formDataInstances

private array<string|int, mixed> $_formDataInstances = []

$_formNo

private static int $_formNo = 0

Methods

__construct()

public __construct(FormPostConfiguration $pFormPostConfiguration, FormPostContactConfiguration $pFormPostContactConfiguration, SearchcriteriaFields $pSearchcriteriaFields, FieldsCollectionConfiguratorForm $pFieldsCollectionConfiguratorForm) : mixed
Parameters
$pFormPostConfiguration : FormPostConfiguration
$pFormPostContactConfiguration : FormPostContactConfiguration
$pSearchcriteriaFields : SearchcriteriaFields
$pFieldsCollectionConfiguratorForm : FieldsCollectionConfiguratorForm
Return values
mixed

getAbsolutCountResults()

public getAbsolutCountResults() : int
Return values
int

getFormNo()

public getFormNo() : int
Return values
int

incrementFormNo()

public static incrementFormNo() : mixed
Return values
mixed

setFormDataInstances()

public setFormDataInstances(FormData $pFormData) : mixed
Parameters
$pFormData : FormData
Return values
mixed

expandFieldsCollection()

protected expandFieldsCollection() : array<string|int, mixed>
Return values
array<string|int, mixed>

setAbsolutCountResults()

protected setAbsolutCountResults(int $absolutCountResults) : mixed
Parameters
$absolutCountResults : int
Return values
mixed

sendContactRequest()

private sendContactRequest(FormData $pFormData[, string $recipient = '' ][, string $subject = null ]) : mixed
Parameters
$pFormData : FormData
$recipient : string = ''
$subject : string = null
Tags
throws
ApiClientException
throws
DependencyException
throws
NotFoundException
Return values
mixed

Search results