class GeolocatorController extends Controller implements GeolocatorControllerInterface (View source)

Properties

protected Geolocator $geolocator
private Record|null $configurationRecord

Methods

__construct(Geolocator $geolocator)

No description

getFileRecord($file)

Get the path to a geolocator file.

getConfigurationRecord()

No description

bool
hasConfigurationForm()

Does this geolocator library has a configuration form?

renderConfigurationForm()

Render the configuration form.

array
saveConfigurationForm(array $configuration, ParameterBag $data, ErrorList $error)

Save the configuration form.

geolocateIPAddress(AddressInterface $address)

Geolocate an IP address.

performGeolocation(AddressInterface $address)

Geolocate an IP address.

Details

__construct(Geolocator $geolocator)

Parameters

Geolocator $geolocator

protected Record getFileRecord($file)

Get the path to a geolocator file.

Parameters

$file

Return Value

Record

protected Record getConfigurationRecord()

Return Value

Record

bool hasConfigurationForm()

Does this geolocator library has a configuration form?

Return Value

bool

See also

GeolocatorControllerInterface::hasConfigurationForm()

renderConfigurationForm()

Render the configuration form.

See also

GeolocatorControllerInterface::renderConfigurationForm()

array saveConfigurationForm(array $configuration, ParameterBag $data, ErrorList $error)

Save the configuration form.

Parameters

array $configuration The initial geolocator configuration
ParameterBag $data The data received
ErrorList $error Add errors to this instance

Return Value

array The final geolocator configuration

See also

\Concrete\Core\Geolocator\GeolocatorControllerInterface::saveConfigurationForm()

GeolocationResult geolocateIPAddress(AddressInterface $address)

Geolocate an IP address.

Parameters

AddressInterface $address

Return Value

GeolocationResult

See also

GeolocatorControllerInterface::geolocateIPAddress()

abstract protected GeolocationResult performGeolocation(AddressInterface $address)

Geolocate an IP address.

Parameters

AddressInterface $address

Return Value

GeolocationResult