Semantic MediaWiki and related extensions
Static Public Member Functions | List of all members
Maps\MediaWiki\SemanticMapsHooks Class Reference

Static Public Member Functions

static addToAdminLinks (ALTree &$admin_links_tree)
 
static initGeoDataTypes ()
 
static addGeoCoordsDefaultFormat (&$format, array $printRequests)
 

Detailed Description

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Member Function Documentation

◆ addGeoCoordsDefaultFormat()

static Maps\MediaWiki\SemanticMapsHooks::addGeoCoordsDefaultFormat ( $format,
array  $printRequests 
)
static

Set the default format to 'map' when the requested properties are of type geographic coordinates.

TODO: have a setting to turn this off and have it off by default for #show

Since
1.0
Parameters
$formatMixed: The format (string), or false when not set yet
SMWPrintRequest[]$printRequests The print requests made
Returns
boolean

◆ addToAdminLinks()

static Maps\MediaWiki\SemanticMapsHooks::addToAdminLinks ( ALTree &  $admin_links_tree)
static

Adds a link to Admin Links page.

Since
0.7
Parameters
ALTree$admin_links_tree
Returns
boolean

◆ initGeoDataTypes()

static Maps\MediaWiki\SemanticMapsHooks::initGeoDataTypes ( )
static

Adds support for the geographical coordinates and shapes data type to Semantic MediaWiki.

Since
2.0
Returns
boolean

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy