/** * Registeres the geocoder. * * No LSB in pre-5.3 PHP *sigh*. * This is to be refactored as soon as php >=5.3 becomes acceptable. * * @since 1.0 */ public static function register() { global $egMapsGeoNamesUser; if ($egMapsGeoNamesUser !== '') { MapsGeocoders::registerGeocoder('geonames', __CLASS__); } return true; }
/** * Registeres the geocoder. * * No LSB in pre-5.3 PHP *sigh*. * This is to be refactored as soon as php >=5.3 becomes acceptable. * * @since 0.7 */ public static function register() { MapsGeocoders::registerGeocoder('google', __CLASS__); return true; }
/** * Registeres the geocoder. * * No LSB in pre-5.3 PHP *sigh*. * This is to be refactored as soon as php >=5.3 becomes acceptable. * * @since 0.7 */ public static function register() { global $egMapsGeoNamesUser; MapsGeocoders::registerGeocoder($egMapsGeoNamesUser === '' ? 'geonames' : 'geonamesold', __CLASS__); return true; }