class GeoPHPWrapper in Geofield 8
Provides a geoPHP Wrapper class.
Hierarchy
- class \Drupal\geofield\GeoPHP\GeoPHPWrapper implements GeoPHPInterface
Expanded class hierarchy of GeoPHPWrapper
1 file declares its use of GeoPHPWrapper
- ConstraintsTest.php in tests/
src/ Kernel/ ConstraintsTest.php
1 string reference to 'GeoPHPWrapper'
1 service uses GeoPHPWrapper
File
- src/
GeoPHP/ GeoPHPWrapper.php, line 8
Namespace
Drupal\geofield\GeoPHPView source
class GeoPHPWrapper implements GeoPHPInterface {
/**
* {@inheritdoc}
*/
public function version() {
return \geoPHP::version();
}
/**
* {@inheritdoc}
*/
public function load($data = NULL, $type = NULL) {
try {
return call_user_func_array([
'\\geoPHP',
'load',
], func_get_args());
} catch (\Exception $e) {
return NULL;
}
}
/**
* {@inheritdoc}
*/
public function getAdapterMap() {
return call_user_func_array([
'\\geoPHP',
'getAdapterMap',
], func_get_args());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GeoPHPWrapper:: |
public | function |
Get the Adapter Map. Overrides GeoPHPInterface:: |
|
GeoPHPWrapper:: |
public | function |
Loads a geometry object given some parameters. Overrides GeoPHPInterface:: |
|
GeoPHPWrapper:: |
public | function |
Retrieves the GeoPHP library current version. Overrides GeoPHPInterface:: |