FormPostOwner
extends FormPost
in package
Terminology used in this class:
Table of Contents
- MESSAGE_ERROR = 'error'
- MESSAGE_RECAPTCHA_SPAM = 'recaptchaSpam'
- MESSAGE_REQUIRED_FIELDS_MISSING = 'fieldmissing'
- MESSAGE_SUCCESS = 'success'
- $_absolutCountResults : int
- $_formDataInstances : array<string|int, mixed>
- $_formNo : int
- $_pCompoundFields : CompoundFieldsFilter
- $_pFieldsCollection : FieldsCollection
- $_pFieldsCollectionConfiguratorForm : FieldsCollectionConfiguratorForm
- $_pFormData : FormData
- $_pFormPostConfiguration : FormPostConfiguration
- $_pFormPostOwnerConfiguration : FormPostOwnerConfiguration
- $_pSearchcriteriaFields : SearchcriteriaFields
- __construct() : mixed
- getAbsolutCountResults() : int
- getEstateData() : array<string|int, mixed>
- getFormDataInstance() : FormData
- getFormNo() : int
- incrementFormNo() : mixed
- initialCheck() : void
- setFormDataInstances() : mixed
- analyseFormContentByPrefix() : mixed
- expandFieldsCollection() : array<string|int, mixed>
- getAllowedPostVars() : array<string|int, string>
- getFieldsCollection() : FieldsCollection
- setAbsolutCountResults() : mixed
- setFieldsCollection() : mixed
- buildFormData() : FormData
- checkCaptcha() : bool
- createEstate() : int
- createOwnerRelation() : mixed
- 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'
Properties
$_absolutCountResults
private
int
$_absolutCountResults
= 0
$_formDataInstances
private
array<string|int, mixed>
$_formDataInstances
= []
$_formNo
private
static int
$_formNo
= 0
$_pCompoundFields
private
CompoundFieldsFilter
$_pCompoundFields
= null
$_pFieldsCollection
private
FieldsCollection
$_pFieldsCollection
= null
$_pFieldsCollectionConfiguratorForm
private
FieldsCollectionConfiguratorForm
$_pFieldsCollectionConfiguratorForm
$_pFormData
private
FormData
$_pFormData
= null
$_pFormPostConfiguration
private
FormPostConfiguration
$_pFormPostConfiguration
= null
$_pFormPostOwnerConfiguration
private
FormPostOwnerConfiguration
$_pFormPostOwnerConfiguration
= null
$_pSearchcriteriaFields
private
SearchcriteriaFields
$_pSearchcriteriaFields
= null
Methods
__construct()
public
__construct(FormPostConfiguration $pFormPostConfiguration, FormPostOwnerConfiguration $pFormPostOwnerConfiguration, SearchcriteriaFields $pSearchcriteriaFields, FieldsCollectionConfiguratorForm $pFieldsCollectionConfiguratorForm) : mixed
Parameters
- $pFormPostConfiguration : FormPostConfiguration
- $pFormPostOwnerConfiguration : FormPostOwnerConfiguration
- $pSearchcriteriaFields : SearchcriteriaFields
- $pFieldsCollectionConfiguratorForm : FieldsCollectionConfiguratorForm
Return values
mixed —getAbsolutCountResults()
public
getAbsolutCountResults() : int
Return values
int —getEstateData()
public
getEstateData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFormDataInstance()
public
getFormDataInstance(string $prefix, int $formNo) : FormData
Parameters
- $prefix : string
- $formNo : int
Tags
Return values
FormData —getFormNo()
public
getFormNo() : int
Return values
int —incrementFormNo()
public
static incrementFormNo() : mixed
Return values
mixed —initialCheck()
public
initialCheck(DataFormConfiguration $pConfig, int $formNo) : void
Parameters
- $pConfig : DataFormConfiguration
- $formNo : int
Tags
Return values
void —setFormDataInstances()
public
setFormDataInstances(FormData $pFormData) : mixed
Parameters
- $pFormData : FormData
Return values
mixed —analyseFormContentByPrefix()
protected
analyseFormContentByPrefix(FormData $pFormData) : mixed
Parameters
- $pFormData : FormData
Tags
Return values
mixed —expandFieldsCollection()
protected
expandFieldsCollection() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAllowedPostVars()
protected
getAllowedPostVars(DataFormConfiguration $pFormConfig) : array<string|int, string>
Parameters
- $pFormConfig : DataFormConfiguration
Return values
array<string|int, string> —getFieldsCollection()
protected
getFieldsCollection() : FieldsCollection
Return values
FieldsCollection —setAbsolutCountResults()
protected
setAbsolutCountResults(int $absolutCountResults) : mixed
Parameters
- $absolutCountResults : int
Return values
mixed —setFieldsCollection()
protected
setFieldsCollection(DataFormConfiguration $pFormConfig) : mixed
Parameters
- $pFormConfig : DataFormConfiguration
Tags
Return values
mixed —buildFormData()
private
buildFormData(DataFormConfiguration $pFormConfig, int $formNo) : FormData
Parameters
- $pFormConfig : DataFormConfiguration
- $formNo : int
Tags
Return values
FormData —checkCaptcha()
private
checkCaptcha(DataFormConfiguration $pConfig) : bool
Parameters
- $pConfig : DataFormConfiguration
Return values
bool —createEstate()
private
createEstate(array<string|int, mixed> $estateData) : int
Parameters
- $estateData : array<string|int, mixed>
Tags
Return values
int —createOwnerRelation()
private
createOwnerRelation(int $estateId, int $addressId) : mixed
Parameters
- $estateId : int
- $addressId : int
Tags
Return values
mixed —sendContactRequest()
private
sendContactRequest(string $recipient, int $estateId, array<string|int, mixed> $estateValues[, string $subject = null ]) : mixed
Parameters
- $recipient : string
- $estateId : int
- $estateValues : array<string|int, mixed>
- $subject : string = null