BetterBrief\GoogleMapField
Synopsis
class GoogleMapField
extends FormField
{
- // members
- protected $data;
- protected FormField $latField;
- protected FormField $lngField;
- protected FormField $zoomField;
- protected FormField $boundsField;
- protected array $options = ;
- // methods
- public void __construct()
- public void getName()
- public void setupOptions()
- public FieldList setupChildren()
- public void Field()
- protected void requireDependencies()
- public void setValue()
- public void saveInto()
- public FieldList getChildFields()
- protected void childFieldName()
- protected void recordFieldData()
- public void getDefaultValue()
- public string getLatData()
- public string getLngData()
- public mixed getOption()
- public $this setOption()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
protected
- $boundsField — SilverStripe\Forms\FormField
- $data
- $latField — SilverStripe\Forms\FormField
- $lngField — SilverStripe\Forms\FormField
- $options
—
array
The merged version of the default and user specified options - $zoomField — SilverStripe\Forms\FormField
Methods
protected
- childFieldName()
- recordFieldData()
- requireDependencies() — Set up and include any frontend requirements
public
- __construct()
- Field()
- getChildFields()
- getDefaultValue()
- getLatData()
- getLngData()
- getName()
- getOption() — Get the merged option that was set on __construct
- saveInto() — Take the latitude/longitude fields and save them to the DataObject.
- setOption() — Set an option for this field
- setValue() — {@inheritdoc}
- setupChildren() — Set up child hidden fields, and optionally the search box.
- setupOptions() — Merge options preserving the first level of array keys