DataFormConfigurationFactory
in package
Table of Contents
- $_formClassMapping : array<string|int, mixed>
- $_isAdminInterface : bool
- $_pGeoPositionFieldHandler : GeoPositionFieldHandler
- $_pRecordManagerRead : RecordManagerReadForm
- $_type : string
- __construct() : mixed
- createEmpty() : DataFormConfiguration
- getIsAdminInterface() : bool
- loadByFormId() : DataFormConfiguration
- loadByFormName() : DataFormConfiguration
- setIsAdminInterface() : mixed
- withType() : DataFormConfigurationFactory
- configureApplicantSearch() : mixed
- configureContact() : mixed
- configureFieldsByRow() : mixed
- configureGeneral() : mixed
- configureGeoFields() : array<string|int, mixed>
- configureInterest() : mixed
- configureOwner() : mixed
- createByRow() : DataFormConfiguration
Properties
$_formClassMapping
private
array<string|int, mixed>
$_formClassMapping
= [\onOffice\WPlugin\Form::TYPE_CONTACT => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationContact::class, \onOffice\WPlugin\Form::TYPE_OWNER => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationOwner::class, \onOffice\WPlugin\Form::TYPE_INTEREST => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationInterest::class, \onOffice\WPlugin\Form::TYPE_APPLICANT_SEARCH => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationApplicantSearch::class]
$_isAdminInterface
private
bool
$_isAdminInterface
= false
$_pGeoPositionFieldHandler
private
GeoPositionFieldHandler
$_pGeoPositionFieldHandler
= null
$_pRecordManagerRead
private
RecordManagerReadForm
$_pRecordManagerRead
= null
$_type
private
string
$_type
= null
Methods
__construct()
public
__construct([string $type = null ][, RecordManagerReadForm $pRecordManagerReadForm = null ][, GeoPositionFieldHandler $pGeoPositionFieldHandler = null ]) : mixed
Parameters
- $type : string = null
-
Optional when loading by ID/name
- $pRecordManagerReadForm : RecordManagerReadForm = null
- $pGeoPositionFieldHandler : GeoPositionFieldHandler = null
Return values
mixed —createEmpty()
public
createEmpty([bool $setDefaultFields = true ]) : DataFormConfiguration
Parameters
- $setDefaultFields : bool = true
Tags
Return values
DataFormConfiguration —getIsAdminInterface()
public
getIsAdminInterface() : bool
Return values
bool —loadByFormId()
public
loadByFormId(int $formId) : DataFormConfiguration
Parameters
- $formId : int
Return values
DataFormConfiguration —loadByFormName()
public
loadByFormName(string $name) : DataFormConfiguration
Parameters
- $name : string
Tags
Return values
DataFormConfiguration —setIsAdminInterface()
public
setIsAdminInterface(bool $adminInterface) : mixed
Parameters
- $adminInterface : bool
Return values
mixed —withType()
public
withType(string $type) : DataFormConfigurationFactory
Parameters
- $type : string
Return values
DataFormConfigurationFactory —configureApplicantSearch()
private
configureApplicantSearch(array<string|int, mixed> $row, DataFormConfigurationApplicantSearch $pConfig) : mixed
Parameters
- $row : array<string|int, mixed>
- $pConfig : DataFormConfigurationApplicantSearch
Return values
mixed —configureContact()
private
configureContact(array<string|int, mixed> $row, DataFormConfigurationContact $pConfig) : mixed
Parameters
- $row : array<string|int, mixed>
- $pConfig : DataFormConfigurationContact
Return values
mixed —configureFieldsByRow()
private
configureFieldsByRow(array<string|int, mixed> $row, DataFormConfiguration $pFormConfiguration) : mixed
Parameters
- $row : array<string|int, mixed>
- $pFormConfiguration : DataFormConfiguration
Return values
mixed —configureGeneral()
private
configureGeneral(array<string|int, mixed> $row, DataFormConfiguration $pConfig) : mixed
Parameters
- $row : array<string|int, mixed>
- $pConfig : DataFormConfiguration
Return values
mixed —configureGeoFields()
private
configureGeoFields(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
Return values
array<string|int, mixed> —configureInterest()
private
configureInterest(array<string|int, mixed> $row, DataFormConfigurationInterest $pConfig) : mixed
Parameters
- $row : array<string|int, mixed>
- $pConfig : DataFormConfigurationInterest
Return values
mixed —configureOwner()
private
configureOwner(array<string|int, mixed> $row, DataFormConfigurationOwner $pConfig) : mixed
Parameters
- $row : array<string|int, mixed>
- $pConfig : DataFormConfigurationOwner
Return values
mixed —createByRow()
private
createByRow(array<string|int, mixed> $row) : DataFormConfiguration
Parameters
- $row : array<string|int, mixed>