Controller
class Controller extends GeolocatorController (View source)
Constants
| GEOPLUGIN_STATUS_OK | 
                     OK, lookup no problem.  | 
            
| GEOPLUGIN_STATUS_ONLYCOUNTRY | 
                     Lookup OK, but only country data returned, no city values found (a play on the http 206 partial content code).  | 
            
| GEOPLUGIN_STATUS_NOTFOUND | 
                     No data found for the IP at all.  | 
            
Properties
| protected Geolocator | $geolocator | from GeolocatorController | |
| private Record|null | $configurationRecord | from GeolocatorController | 
Methods
                    bool
                
                
                    hasConfigurationForm()
        
                                            
                Does this geolocator library has a configuration form?
from 
GeolocatorController
            
                    array
                
                
                    saveConfigurationForm(array $configuration, ParameterBag $data, ErrorList $error)
        
                                            
                
            Save the configuration form.
                    geolocateIPAddress(AddressInterface $address)
        
                                            
                Geolocate an IP address.
from 
GeolocatorController
            
                    performGeolocation(AddressInterface $address)
        
                                            
                
            Geolocate an IP address.
                    dataToGeolocationResult(array $data, array $configuration, GeolocationResult $result)
        
                                            
                
            No description
Details
        
                            
    __construct(Geolocator $geolocator)
        
    
    No description
        
                    protected        Record
    getFileRecord(string $file)
        
    
    Get the path to a geolocator file.
        
                    protected        Record
    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.
        
                            GeolocationResult
    geolocateIPAddress(AddressInterface $address)
        
    
    Geolocate an IP address.
        
                    protected        GeolocationResult
    performGeolocation(AddressInterface $address)
        
    
    Geolocate an IP address.
        
                        private    
    dataToGeolocationResult(array $data, array $configuration, GeolocationResult $result)
        
    
    No description