Go to the source code of this file.
Enumerations | |
| enum | Maps_VERSION |
Functions | |
| efMapsSetup () | |
| Initialization function for the Maps extension. | |
| efMapsAddParserHooks () | |
| Adds the parser function hooks. | |
| efMapsFunctionMagic (&$magicWords, $langCode) | |
| Adds the magic words for the parser functions. | |
| efMapsValidateGoogleMapsKey () | |
| This function ensures backward compatibility with Semantic Google Maps and other extensions using $wgGoogleMapsKey instead of $egGoogleMapsKey. | |
| efMapsAddToAdminLinks (&$admin_links_tree) | |
| Adds a link to Admin Links page. | |
Variables | |
| $egMapsScriptPath = $wgScriptPath . '/extensions/Maps' | |
| $egMapsIP = $IP . '/extensions/Maps' | |
| $egMapsIncludePath = $wgServer . $egMapsScriptPath | |
| $wgExtensionFunctions [] = 'efMapsSetup' | |
| $wgExtensionMessagesFiles ['Maps'] = $egMapsIP . '/Maps.i18n.php' | |
| $wgHooks ['LanguageGetMagic'][] = 'efMapsFunctionMagic' | |
| $wgHooks ['AdminLinks'][] = 'efMapsAddToAdminLinks' | |
| $wgAutoloadClasses ['MapsMapFeature'] = $egMapsIP . '/Maps_MapFeature.php' | |
| $wgAutoloadClasses ['MapsBaseMap'] = $egMapsIP . '/Maps_BaseMap.php' | |
| $wgAutoloadClasses ['MapsMapper'] = $egMapsIP . '/Maps_Mapper.php' | |
| $wgAutoloadClasses ['MapsParserFunctions'] = $egMapsIP . '/Maps_ParserFunctions.php' | |
| $wgAutoloadClasses ['MapsUtils'] = $egMapsIP . '/Maps_Utils.php' | |
| $wgAutoloadClasses ['MapsGeocoder'] = $egMapsIP . '/Maps_Geocoder.php' | |
| $wgAutoloadClasses ['MapsBaseGeocoder'] = $egMapsIP . '/Maps_BaseGeocoder.php' | |
| $egMapsServices = array() | |
| $egMapsServices ['googlemaps'] | |
| $egMapsServices ['openlayers'] | |
| $egMapsServices ['yahoomaps'] | |
Extension documentation: http://www.mediawiki.org/wiki/Extension:Maps
Definition in file Maps.php.
| enum Maps_VERSION |
| efMapsAddParserHooks | ( | ) |
Adds the parser function hooks.
Definition at line 131 of file Maps.php.
Referenced by efMapsSetup().
| efMapsAddToAdminLinks | ( | &$ | admin_links_tree | ) |
| efMapsFunctionMagic | ( | &$ | magicWords, | |
| $ | langCode | |||
| ) |
Adds the magic words for the parser functions.
Definition at line 151 of file Maps.php.
References $magicWords.
| efMapsSetup | ( | ) |
Initialization function for the Maps extension.
Definition at line 89 of file Maps.php.
References $egMapsAvailableGeoServices, $egMapsAvailableServices, $egMapsDefaultGeoService, $egMapsDefaultService, $egMapsIP, $egMapsScriptPath, $egMapsServices, $wgAutoloadClasses, $wgExtensionCredits, efMapsAddParserHooks(), and efMapsValidateGoogleMapsKey().
| efMapsValidateGoogleMapsKey | ( | ) |
This function ensures backward compatibility with Semantic Google Maps and other extensions using $wgGoogleMapsKey instead of $egGoogleMapsKey.
Definition at line 168 of file Maps.php.
Referenced by efMapsSetup().
| $egMapsIncludePath = $wgServer . $egMapsScriptPath |
Definition at line 21 of file Maps.php.
Referenced by MapsGoogleMapsUtils::addGMapDependencies(), MapsOpenLayersUtils::addOLDependencies(), MapsYahooMapsUtils::addYMapDependencies(), and MapsOpenLayersUtils::loadDependencyWhenNeeded().
| $egMapsIP = $IP . '/extensions/Maps' |
Definition at line 20 of file Maps.php.
Referenced by MapsGeocoder::addAutoloadClassIfNeeded(), and efMapsSetup().
| $egMapsScriptPath = $wgScriptPath . '/extensions/Maps' |
| $egMapsServices['yahoomaps'] |
Initial value:
array(
'pf' => array('class' => 'MapsYahooMaps', 'file' => 'YahooMaps/Maps_YahooMaps.php', 'local' => true),
'classes' => array(
array('class' => 'MapsYahooMapsUtils', 'file' => 'YahooMaps/Maps_YahooMapsUtils.php', 'local' => true)
),
'aliases' => array('yahoo', 'yahoomap', 'ymap', 'ymaps'),
'parameters' => array(
'type' => array('map-type'),
'types' => array('map-types', 'map types'),
'autozoom' => array('auto zoom', 'mouse zoom', 'mousezoom')
)
)
| $egMapsServices['openlayers'] |
Initial value:
array(
'pf' => array('class' => 'MapsOpenLayers', 'file' => 'OpenLayers/Maps_OpenLayers.php', 'local' => true),
'classes' => array(
array('class' => 'MapsOpenLayersUtils', 'file' => 'OpenLayers/Maps_OpenLayersUtils.php', 'local' => true)
),
'aliases' => array('layers', 'openlayer'),
'parameters' => array(
'layers' => array(),
'baselayer' => array()
)
)
| $egMapsServices['googlemaps'] |
Initial value:
array(
'pf' => array('class' => 'MapsGoogleMaps', 'file' => 'GoogleMaps/Maps_GoogleMaps.php', 'local' => true),
'classes' => array(
array('class' => 'MapsGoogleMapsUtils', 'file' => 'GoogleMaps/Maps_GoogleMapsUtils.php', 'local' => true)
),
'aliases' => array('google', 'googlemap', 'gmap', 'gmaps'),
'parameters' => array(
'type' => array('map-type', 'map type'),
'types' => array('map-types', 'map types'),
'earth' => array(),
'autozoom' => array('auto zoom', 'mouse zoom', 'mousezoom'),
'class' => array(),
'style' => array()
)
)
| $egMapsServices = array() |
Definition at line 43 of file Maps.php.
Referenced by MapsParserFunctions::displayPointRender(), efMapsSetup(), MapsMapper::getMainServiceName(), and MapsMapFeature::manageMapProperties().
| $wgAutoloadClasses['MapsBaseGeocoder'] = $egMapsIP . '/Maps_BaseGeocoder.php' |
| $wgAutoloadClasses['MapsGeocoder'] = $egMapsIP . '/Maps_Geocoder.php' |
| $wgAutoloadClasses['MapsUtils'] = $egMapsIP . '/Maps_Utils.php' |
| $wgAutoloadClasses['MapsParserFunctions'] = $egMapsIP . '/Maps_ParserFunctions.php' |
| $wgAutoloadClasses['MapsMapper'] = $egMapsIP . '/Maps_Mapper.php' |
| $wgAutoloadClasses['MapsBaseMap'] = $egMapsIP . '/Maps_BaseMap.php' |
| $wgAutoloadClasses['MapsMapFeature'] = $egMapsIP . '/Maps_MapFeature.php' |
Definition at line 34 of file Maps.php.
Referenced by MapsGeocoder::addAutoloadClassIfNeeded(), efMapsSetup(), SMQueryPrinters::initialize(), SMFormInputs::initialize(), smfInitGoogleMaps3(), smfInitOpenLayers(), smfInitYahooMaps(), and smwfRegisterClasses().
| $wgExtensionFunctions[] = 'efMapsSetup' |
Definition at line 26 of file Maps.php.
Referenced by enableSemantics(), and SFFormUtils::mainFCKJavascript().
| $wgExtensionMessagesFiles['Maps'] = $egMapsIP . '/Maps.i18n.php' |
| $wgHooks['LanguageGetMagic'][] = 'efMapsFunctionMagic' |
Definition at line 30 of file Maps.php.
Referenced by SFFormUtils::mainFCKJavascript(), and smwfRegisterHooks().
1.5.6