InputModelBuilderGeoRange
in package
Builds InputModel instances for the back-end box of Geo Fields.
Note that Applicant Forms don't have a radius.
Table of Contents
- GEO_ORDER_OOPTIONS_TEMPLATE = [[\onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_STREET, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_ZIP, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_CITY, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_COUNTRY, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_RADIUS], [\onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_RADIUS, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_STREET, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_ZIP, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_CITY, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_COUNTRY]]
- $_pFieldsCollection : FieldModuleCollectionDecoratorGeoPositionFrontend
- $_pGeoPositionFieldHandler : GeoPositionFieldHandler
- $_pInputModelFactory : InputModelDBFactory
- __construct() : mixed
- build() : Generator
- getFieldsCollection() : FieldModuleCollectionDecoratorGeoPositionFrontend
- getGeoPositionFieldHandler() : GeoPositionFieldHandler
- getInputModelFactory() : InputModelDBFactory
- filterGeoOrderOptionsTemplateByView() : array<string|int, mixed>
- generateInputOrder() : array<string|int, InputModelDB>
- generateInputRadius() : InputModelDB
- getFieldnamesActiveCheckbox() : array<string|int, mixed>
- getGeoFieldLabel() : string
Constants
GEO_ORDER_OOPTIONS_TEMPLATE
public
array<string|int, mixed>
GEO_ORDER_OOPTIONS_TEMPLATE
= [[\onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_STREET, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_ZIP, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_CITY, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_COUNTRY, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_RADIUS], [\onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_RADIUS, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_STREET, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_ZIP, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_CITY, \onOffice\WPlugin\GeoPosition::ESTATE_LIST_SEARCH_COUNTRY]]
Properties
$_pFieldsCollection
private
FieldModuleCollectionDecoratorGeoPositionFrontend
$_pFieldsCollection
= null
$_pGeoPositionFieldHandler
private
GeoPositionFieldHandler
$_pGeoPositionFieldHandler
= null
$_pInputModelFactory
private
InputModelDBFactory
$_pInputModelFactory
= null
Methods
__construct()
public
__construct(string $module[, GeoPositionFieldHandler $pGeoPositionFieldHandler = null ][, FieldModuleCollectionDecoratorGeoPositionFrontend $pFieldsCollection = null ]) : mixed
Parameters
- $module : string
- $pGeoPositionFieldHandler : GeoPositionFieldHandler = null
- $pFieldsCollection : FieldModuleCollectionDecoratorGeoPositionFrontend = null
Return values
mixed —build()
public
build(ViewProperty $pView) : Generator
Parameters
- $pView : ViewProperty
Return values
Generator —getFieldsCollection()
public
getFieldsCollection() : FieldModuleCollectionDecoratorGeoPositionFrontend
Return values
FieldModuleCollectionDecoratorGeoPositionFrontend —getGeoPositionFieldHandler()
public
getGeoPositionFieldHandler() : GeoPositionFieldHandler
Return values
GeoPositionFieldHandler —getInputModelFactory()
public
getInputModelFactory() : InputModelDBFactory
Return values
InputModelDBFactory —filterGeoOrderOptionsTemplateByView()
private
filterGeoOrderOptionsTemplateByView(ViewProperty $pView) : array<string|int, mixed>
Parameters
- $pView : ViewProperty
Return values
array<string|int, mixed> —generateInputOrder()
private
generateInputOrder(ViewProperty $pView) : array<string|int, InputModelDB>
Parameters
- $pView : ViewProperty
Return values
array<string|int, InputModelDB> —Array containing an InputModelDB if > 1 settings for the sorting are available
generateInputRadius()
private
generateInputRadius() : InputModelDB
Return values
InputModelDB —getFieldnamesActiveCheckbox()
private
getFieldnamesActiveCheckbox(ViewProperty $pView) : array<string|int, mixed>
Parameters
- $pView : ViewProperty
Return values
array<string|int, mixed> —getGeoFieldLabel()
private
getGeoFieldLabel(string $key) : string
Parameters
- $key : string