Maps/Maps.php File Reference

Initialization file for the Maps extension. More...

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']


Detailed Description

Initialization file for the Maps extension.

Extension documentation: http://www.mediawiki.org/wiki/Extension:Maps

Author:
Jeroen De Dauw

Definition in file Maps.php.


Enumeration Type Documentation

Definition at line 17 of file Maps.php.


Function Documentation

efMapsAddParserHooks (  ) 

Adds the parser function hooks.

Definition at line 131 of file Maps.php.

Referenced by efMapsSetup().

efMapsAddToAdminLinks ( &$  admin_links_tree  ) 

Adds a link to Admin Links page.

Definition at line 177 of file Maps.php.

efMapsFunctionMagic ( &$  magicWords,
langCode 
)

Adds the magic words for the parser functions.

Definition at line 151 of file Maps.php.

References $magicWords.

efMapsSetup (  ) 

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().


Variable Documentation

$egMapsIncludePath = $wgServer . $egMapsScriptPath

$egMapsIP = $IP . '/extensions/Maps'

Definition at line 20 of file Maps.php.

Referenced by MapsGeocoder::addAutoloadClassIfNeeded(), and efMapsSetup().

$egMapsScriptPath = $wgScriptPath . '/extensions/Maps'

Definition at line 19 of file Maps.php.

Referenced by efMapsSetup().

$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')
                                                                                        )
                                                                        )

Definition at line 73 of file Maps.php.

$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()
                                                                                        )
                                                                        )

Definition at line 61 of file Maps.php.

$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()                                                                              
                                                                                        )
                                                                        )

Definition at line 45 of file Maps.php.

$egMapsServices = array()

$wgAutoloadClasses['MapsBaseGeocoder'] = $egMapsIP . '/Maps_BaseGeocoder.php'

Definition at line 40 of file Maps.php.

$wgAutoloadClasses['MapsGeocoder'] = $egMapsIP . '/Maps_Geocoder.php'

Definition at line 39 of file Maps.php.

$wgAutoloadClasses['MapsUtils'] = $egMapsIP . '/Maps_Utils.php'

Definition at line 38 of file Maps.php.

$wgAutoloadClasses['MapsParserFunctions'] = $egMapsIP . '/Maps_ParserFunctions.php'

Definition at line 37 of file Maps.php.

$wgAutoloadClasses['MapsMapper'] = $egMapsIP . '/Maps_Mapper.php'

Definition at line 36 of file Maps.php.

$wgAutoloadClasses['MapsBaseMap'] = $egMapsIP . '/Maps_BaseMap.php'

Definition at line 35 of file Maps.php.

$wgAutoloadClasses['MapsMapFeature'] = $egMapsIP . '/Maps_MapFeature.php'

$wgExtensionFunctions[] = 'efMapsSetup'

Definition at line 26 of file Maps.php.

Referenced by enableSemantics(), and SFFormUtils::mainFCKJavascript().

$wgExtensionMessagesFiles['Maps'] = $egMapsIP . '/Maps.i18n.php'

Definition at line 28 of file Maps.php.

Referenced by enableSemantics().

$wgHooks['AdminLinks'][] = 'efMapsAddToAdminLinks'

Definition at line 31 of file Maps.php.

$wgHooks['LanguageGetMagic'][] = 'efMapsFunctionMagic'

Definition at line 30 of file Maps.php.

Referenced by SFFormUtils::mainFCKJavascript(), and smwfRegisterHooks().


Generated on Sun Mar 18 07:15:40 2012 for Semantic MediaWiki by  doxygen 1.5.6